当前位置: 首页>>代码示例>>Java>>正文


Java Engine.getSystem方法代码示例

本文整理汇总了Java中com.badlogic.ashley.core.Engine.getSystem方法的典型用法代码示例。如果您正苦于以下问题:Java Engine.getSystem方法的具体用法?Java Engine.getSystem怎么用?Java Engine.getSystem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.badlogic.ashley.core.Engine的用法示例。


在下文中一共展示了Engine.getSystem方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
public static void init(Engine engine)
{
	ecsEngine = engine;
	
	PhysicsSystem physicsSystem = engine.getSystem(PhysicsSystem.class);
	
	OverlapSceneLoader.registerPlugin("levelConfig", new SceneConfigPlugin());
	OverlapSceneLoader.registerPlugin("cctv", new CCTvPlugin());
	OverlapSceneLoader.registerPlugin("grunt", new GruntPlugin(physicsSystem));
	OverlapSceneLoader.registerPlugin("player", new PlayerPlugin(
		engine.getSystem(CameraSystem.class)
	));
	OverlapSceneLoader.registerPlugin("endOfLevel", new EndOfLevelPlugin(physicsSystem));
	OverlapSceneLoader.registerPlugin("door", new DoorPlugin());
	OverlapSceneLoader.registerPlugin("button", new ButtonPlugin(
			physicsSystem, engine.getSystem(DoorSystem.class)));
	OverlapSceneLoader.registerPlugin("box", new BoxPlugin(physicsSystem));

}
 
开发者ID:saltares,项目名称:libgdxjam,代码行数:20,代码来源:SceneManager.java

示例2: initialize

import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
public void initialize(Engine engine) {
	vao = glGenVertexArrays();
	glBindVertexArray(vao);

	entities = engine.getEntitiesFor(Family.all(Pose.class, Gestalt.class).get());
	lights = engine.getEntitiesFor(Family.all(Pose.class, Light.class).get());

	initDefaultShader();
	initPostShaders();

	camSys = engine.getSystem(CameraSystem.class);
	
	initFullscreenQuad();
}
 
开发者ID:urstruktur,项目名称:zierfisch,代码行数:15,代码来源:RenderSystem.java

示例3: addedToEngine

import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
@Override
public void addedToEngine (Engine engine) {
	super.addedToEngine(engine);
	this.inputSystem = engine.getSystem(InputSystem.class);

	commandCardContainer = new CommandCardContainer(inputSystem, skin, stage);
	Table squadManagmentContainer = new Table();
	squadManagmentContainer.setFillParent(true);
	squadManagmentContainer.add(commandCardContainer).padTop(30);
	squadManagmentContainer.center().bottom();
	stage.addActor(squadManagmentContainer);
}
 
开发者ID:libgdx-jam,项目名称:GDXJam,代码行数:13,代码来源:GUISystem.java

示例4: addedToEngine

import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
public void addedToEngine(Engine engine) {
    PhysixSystem physixSystem = engine.getSystem(PhysixSystem.class);
    if (physixSystem == null) {
        physixSystem = engine.getSystem(PhysixSystemFixedStep.class);
    }
    world = physixSystem.getWorld();
    scale = physixSystem.getScale();
}
 
开发者ID:GameDevWeek,项目名称:CodeBase,代码行数:9,代码来源:PhysixDebugRenderSystem.java

示例5: addedToEngine

import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
@Override
public void addedToEngine(Engine engine) {
	super.addedToEngine(engine);
	engine.addEntityListener(CAM_FAMILY, mainCamSetter);
	fs = engine.getSystem(FlockingSystem.class);
}
 
开发者ID:urstruktur,项目名称:zierfisch,代码行数:7,代码来源:CameraSystem.java

示例6: addedToEngine

import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
@Override
public void addedToEngine (Engine engine) {
	super.addedToEngine(engine);
	cameraSystem = engine.getSystem(CameraSystem.class);
	initalizeInput();
}
 
开发者ID:libgdx-jam,项目名称:GDXJam,代码行数:7,代码来源:InputSystem.java

示例7: addedToEngine

import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
@Override
public void addedToEngine (Engine engine) {
	super.addedToEngine(engine);
	cameraSystem = engine.getSystem(CameraSystem.class);
}
 
开发者ID:libgdx-jam,项目名称:GDXJam,代码行数:6,代码来源:EntityRenderSystem.java


注:本文中的com.badlogic.ashley.core.Engine.getSystem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。