本文整理汇总了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));
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例6: addedToEngine
import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
@Override
public void addedToEngine (Engine engine) {
super.addedToEngine(engine);
cameraSystem = engine.getSystem(CameraSystem.class);
initalizeInput();
}
示例7: addedToEngine
import com.badlogic.ashley.core.Engine; //导入方法依赖的package包/类
@Override
public void addedToEngine (Engine engine) {
super.addedToEngine(engine);
cameraSystem = engine.getSystem(CameraSystem.class);
}