本文整理汇总了Java中com.badlogic.ashley.core.PooledEngine.getSystem方法的典型用法代码示例。如果您正苦于以下问题:Java PooledEngine.getSystem方法的具体用法?Java PooledEngine.getSystem怎么用?Java PooledEngine.getSystem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.ashley.core.PooledEngine
的用法示例。
在下文中一共展示了PooledEngine.getSystem方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setEngine
import com.badlogic.ashley.core.PooledEngine; //导入方法依赖的package包/类
/** Called when the GameManager first initializes a new engine
*
* @param engine The engine that the factory will use to create its entities */
public static void setEngine (PooledEngine engine) {
EntityFactory.engine = engine;
physicsSystem = engine.getSystem(PhysicsSystem.class);
}
示例2: setEngine
import com.badlogic.ashley.core.PooledEngine; //导入方法依赖的package包/类
public static void setEngine (PooledEngine engine) {
EntityUtils.engine = engine;
EntityUtils.guiSystem = engine.getSystem(GUISystem.class);
}
示例3: DesktopGestureListener
import com.badlogic.ashley.core.PooledEngine; //导入方法依赖的package包/类
public DesktopGestureListener (PooledEngine engine) {
this.engine = engine;
this.cameraSystem = engine.getSystem(CameraSystem.class);
}
示例4: UnitEntityListener
import com.badlogic.ashley.core.PooledEngine; //导入方法依赖的package包/类
public UnitEntityListener (PooledEngine engine) {
this.engine = engine;
this.guiSystem = engine.getSystem(GUISystem.class);
}
示例5: init
import com.badlogic.ashley.core.PooledEngine; //导入方法依赖的package包/类
@Override
public void init(PooledEngine engine, AssetManagerX assetManager) {
super.init(engine, assetManager);
physixSystem = engine.getSystem(PhysixSystem.class);
}