本文整理汇总了Java中com.artemis.Aspect.all方法的典型用法代码示例。如果您正苦于以下问题:Java Aspect.all方法的具体用法?Java Aspect.all怎么用?Java Aspect.all使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.artemis.Aspect
的用法示例。
在下文中一共展示了Aspect.all方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RenderSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public RenderSystem(DecalBatch decalBatch, AssetManager assetManager, float worldDegree, Assets.LevelAssets assets) {
super(Aspect.all(RenderComponent.class, PositionComponent.class));
this.levelAssets = assets;
decalMap = new ObjectMap<>();
uiMap = new ObjectMap<>();
this.decalBatch = decalBatch;
this.assetManager = assetManager;
buffers = new ObjectMap<>();
this.spriteBatch = new SpriteBatch();
this.font = assets.uifont;
font.setColor(Color.BLACK);
this.uiCamera = new OrthographicCamera();
Viewport viewportUi = new FitViewport(levelAssets.health_bar_gradient.getWidth(), levelAssets.health_bar_gradient.getHeight(), uiCamera);
viewportUi.update(viewportUi.getScreenWidth(), viewportUi.getScreenHeight(), true);
stateTime = 0;
this.worldDegree = worldDegree;
gradientShader = new ShaderProgram(Shaders.GradientShader.vertexShader, Shaders.GradientShader.fragmentShader);
if (gradientShader.isCompiled() == false)
throw new IllegalArgumentException("couldn't compile shader: " + gradientShader.getLog());
shaderBatch = new SpriteBatch(10, gradientShader);
}
示例2: UiSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public UiSystem(Entities entities) {
super(Aspect.all(UiComponent.class), entities);
supportedRes = new ArrayList<>();
supportedRes.add(new Vector2(1280, 720));
supportedRes.add(new Vector2(1920, 1080));
uiComponents = new Array<>();
}
示例3: LightingSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public LightingSystem() {
super(Aspect.all(NodeComponent.class, LightComponent.class));
tempMat = new Matrix4();
tempVec1 = new Vector3();
tempVec2 = new Vector3();
}
示例4: FootstepSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public FootstepSystem() {
super(Aspect.all(Footsteps.class, Pos.class));
}
示例5: PlanetCoordSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public PlanetCoordSystem() {
super(Aspect.all(Pos.class, Planetbound.class));
}
示例6: PriorityAnimSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public PriorityAnimSystem() {
super(Aspect.all(PriorityAnim.class));
}
示例7: WallSensorSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public WallSensorSystem() {
super(Aspect.all(WallSensor.class, Pos.class, Bounds.class));
}
示例8: RegenSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public RegenSystem(float interval) {
super(Aspect.all(StatComponent.class), interval);
}
示例9: ParticleSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public ParticleSystem() {
super(Aspect.all(SandSprinkler.class));
}
示例10: DialogSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public DialogSystem() {
super(Aspect.all(net.mostlyoriginal.game.component.Dialog.class));
}
示例11: SpoutSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public SpoutSystem() {
super(Aspect.all(Spout.class, Pos.class));
}
示例12: BirdBrainSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public BirdBrainSystem() {
super(Aspect.all(Pos.class, BirdBrain.class));
}
示例13: AchievementSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public AchievementSystem() {
super(Aspect.all(Achievement.class));
}
示例14: CollisionSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public CollisionSystem() {
super(Aspect.all(BodyComponent.class));
}
示例15: GhostSystem
import com.artemis.Aspect; //导入方法依赖的package包/类
public GhostSystem() {
super(Aspect.all(Ghost.class));
}