當前位置: 首頁>>代碼示例>>Java>>正文


Java FileServerDelegate類代碼示例

本文整理匯總了Java中br.odb.utils.FileServerDelegate的典型用法代碼示例。如果您正苦於以下問題:Java FileServerDelegate類的具體用法?Java FileServerDelegate怎麽用?Java FileServerDelegate使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


FileServerDelegate類屬於br.odb.utils包,在下文中一共展示了FileServerDelegate類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: Projectile

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public Projectile(GameActor gameActor, int resId, GameAssetManager gam, FileServerDelegate fsd, MeshFactory factory ) {
	super();
	
	this.candelas = 64;
	this.speed = 5.0f;
	
	hitSound = PositionalMediaPlayer.getFor( new Vec3(), resId, gam );
	
	
	
	ObjMesh obj;
	try {
		obj = new ObjMesh( fsd.openAsInputStream( "torpedo.obj" ), factory );
		setMesh(obj);
		obj.moveTo(getPosition());
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	actorClass = 2;
	
	GameAudioManager.getInstance().registerPlayer( hitSound );
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:littlehelper-3d,代碼行數:24,代碼來源:Projectile.java

示例2: EngineView

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
/**
 * 
 * @param context
 */
public EngineView(Context context, FileServerDelegate server) {
	super(context);


	setEGLContextClientVersion(2);
	keyMap = new boolean[9];
	
	audioManager = GameAudioManager.getInstance();
	gam = ( (PlayGameActivity) PlayGameActivity.getInstance() ).gameAssetManager;
	audioManager.active = !gam.isSilentModeEnabled();

	renderer = new GLESRenderer(2);
	accel = renderer.accel;
	fileServer = server;

	gestureDetector = new GestureDetector(getContext(), this);
	gestureManager = new GestureManager(this);
	setFocusable(true);
	setClickable(true);
	setLongClickable(true);
	setFocusableInTouchMode(true);
	requestFocus();
	setRenderer(renderer);
	setOnTouchListener(this);
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:30,代碼來源:EngineView.java

示例3: requestMapChange

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
@Override
public void requestMapChange(String mapName) {

	if (gameEngine != null) {

		deleteSavedState();
		renderer.detach();
		gameEngine.stop();
	}

	load(mapName, null, (FileServerDelegate) PlayGameActivity.getInstance());
	try {
		Thread.sleep(1000);
	} catch (InterruptedException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}

	gameEngine.start();
	loadComplete();
	renderer.attach();

}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:24,代碼來源:EngineView.java

示例4: clearSavedStates

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void clearSavedStates( FileServerDelegate fsd ) {

//		try {
//			OutputStream fos = fsd.openAsOutputStream( "state" );
//			fos.write( 0 );
//			fos.close();
//		} catch (FileNotFoundException e) {
//			e.printStackTrace();
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
	}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:littlehelper-3d,代碼行數:13,代碼來源:GameSession.java

示例5: internalize

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void internalize(String path, String detail,
		FileServerDelegate server, GameAssetManager gam, MeshFactory factory ) {

	super.internalize(path, true, server, null);

	if (detail != null) {

		try {
			detailMesh = new ObjMesh( server.openAsInputStream( detail ), factory );
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:littlehelper-3d,代碼行數:16,代碼來源:GameWorld.java

示例6: makeDoorAt

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void makeDoorAt(FileServerDelegate fileServer, Sector origin,
		Direction face, int sectorId, String decalName, AbstractTriangleFactory factory) {

	super.makeDoorAt(origin, face, sectorId, decalName);

	if (origin instanceof GameSector && decalName != null
			&& decalName.length() > 0)
		((GameSector) origin).setDecalAt(fileServer, face, decalName, factory);
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:littlehelper-3d,代碼行數:10,代碼來源:GameWorld.java

示例7: applyDecalTo

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void applyDecalTo(FileServerDelegate fileServer, Sector origin,
		Direction face, String decalName, AbstractTriangleFactory factory ) {

	if (origin instanceof GameSector && decalName != null
			&& decalName.length() > 0)
		((GameSector) origin).setDecalAt(fileServer, face, decalName, factory );
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:littlehelper-3d,代碼行數:8,代碼來源:GameWorld.java

示例8: setDoorAt

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void setDoorAt(FileServerDelegate fileServer, Direction slot, int sector,
		String decalName, GameDelegate delegate, PositionalMediaPlayer openSound, PositionalMediaPlayer closeSound, GameAssetManager gam, AbstractTriangleFactory factory ) {
	
	doorCount++;
	doors[slot.ordinal()] = new GameDoor(sector, getCenterForEdge( slot ), openSound, closeSound, delegate, gam );
	setDecalAt(fileServer, slot, decalName, factory);
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:littlehelper-3d,代碼行數:8,代碼來源:GameSector.java

示例9: setDecalAt

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void setDecalAt(FileServerDelegate fileServer, Direction face,
		String decalName, AbstractTriangleFactory factory ) {

	String decalFilename = decalName;
	
	Decal decal = new Decal(fileServer, decalName, decalFilename, 800.0f, 480.0f, factory );
	
	if (doors[face.ordinal()] != null) {			
		doors[face.ordinal()].setMesh( applyToFace(face, decal, 4.0f, factory ) );
		doors[face.ordinal()].getMesh().addFacesFrom( applyToFace(face, decal, -4.0f, factory ) );
	} else
		this.meshWalls[face.ordinal()] = applyToFace(face, decal, 1.0f, factory );
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:littlehelper-3d,代碼行數:14,代碼來源:GameSector.java

示例10: Derelict2DTotautisSpaceStation

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public Derelict2DTotautisSpaceStation( TotautisSpaceStation station, FileServerDelegate delegate) {
	super();
	
	this.station = station;
	
	try {
		heroGraphic = SVGParsingUtils.readSVG( delegate.openAsInputStream( "overview-map/astronaut-icon.svg" ) );			
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:13,代碼來源:Derelict2DTotautisSpaceStation.java

示例11: makeDoorAt

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void makeDoorAt(FileServerDelegate fileServer, Sector origin,
		int face, int sectorId, String decalName) {

	super.makeDoorAt(origin, face, sectorId, decalName);

	if (origin instanceof GameSector && decalName != null
			&& decalName.length() > 0)
		((GameSector) origin).setDecalAt(fileServer, face, decalName);
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:10,代碼來源:GameWorld.java

示例12: applyDecalTo

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void applyDecalTo(FileServerDelegate fileServer, Sector origin,
		int face, String decalName) {

	if (origin instanceof GameSector && decalName != null
			&& decalName.length() > 0)
		((GameSector) origin).setDecalAt(fileServer, face, decalName);
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:8,代碼來源:GameWorld.java

示例13: setDoorAt

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void setDoorAt(FileServerDelegate fileServer, int slot, int sector,
		String decalName, GameDelegate delegate, PositionalMediaPlayer openSound, PositionalMediaPlayer closeSound ) {
	
	doorCount++;
	doors[slot] = new GameDoor(sector, getCenterForEdge( slot ), openSound, closeSound, delegate );
	setDecalAt(fileServer, slot, decalName);
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:8,代碼來源:GameSector.java

示例14: setDecalAt

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public void setDecalAt(FileServerDelegate fileServer, int face,
		String decalName) {

	String decalFilename = decalName;
	
	Decal decal = new Decal(fileServer, decalName, decalFilename, 800.0f, 480.0f );
	
	if (doors[face] != null) {			
		doors[face].setMesh( applyToFace(face, decal, 4.0f ) );
		doors[face].getMesh().addFacesFrom( applyToFace(face, decal, -4.0f ) );
	} else
		this.meshWalls[face] = applyToFace(face, decal, 1.0f );
}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:14,代碼來源:GameSector.java

示例15: meshForName

import br.odb.utils.FileServerDelegate; //導入依賴的package包/類
public ObjMesh meshForName(String string) {

		ObjMesh obj = new ObjMesh();
		try {
			obj.internalize( PlayGameActivity.getInstance().getAssets().open( "torpedo.obj" ), (FileServerDelegate) PlayGameActivity.getInstance(), factory );
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return obj;
	}
 
開發者ID:TheFakeMontyOnTheRun,項目名稱:derelict,代碼行數:13,代碼來源:AndroidGameAssetManager.java


注:本文中的br.odb.utils.FileServerDelegate類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。