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


Java Aspect.all方法代码示例

本文整理汇总了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);
}
 
开发者ID:EtherWorks,项目名称:arcadelegends-gg,代码行数:26,代码来源:RenderSystem.java

示例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<>();
}
 
开发者ID:MovementSpeed,项目名称:nhglib,代码行数:10,代码来源:UiSystem.java

示例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();
}
 
开发者ID:MovementSpeed,项目名称:nhglib,代码行数:8,代码来源:LightingSystem.java

示例4: FootstepSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public FootstepSystem() {
    super(Aspect.all(Footsteps.class, Pos.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:4,代码来源:FootstepSystem.java

示例5: PlanetCoordSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public PlanetCoordSystem() {
    super(Aspect.all(Pos.class, Planetbound.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-little-fortune-planet,代码行数:4,代码来源:PlanetCoordSystem.java

示例6: PriorityAnimSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public PriorityAnimSystem() {
    super(Aspect.all(PriorityAnim.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:4,代码来源:PriorityAnimSystem.java

示例7: WallSensorSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public WallSensorSystem() {
    super(Aspect.all(WallSensor.class, Pos.class, Bounds.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:4,代码来源:WallSensorSystem.java

示例8: RegenSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public RegenSystem(float interval) {
    super(Aspect.all(StatComponent.class), interval);
}
 
开发者ID:EtherWorks,项目名称:arcadelegends-gg,代码行数:4,代码来源:RegenSystem.java

示例9: ParticleSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public ParticleSystem() {
    super(Aspect.all(SandSprinkler.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:4,代码来源:ParticleSystem.java

示例10: DialogSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public DialogSystem() {
    super(Aspect.all(net.mostlyoriginal.game.component.Dialog.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:4,代码来源:DialogSystem.java

示例11: SpoutSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public SpoutSystem() {
    super(Aspect.all(Spout.class, Pos.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:4,代码来源:SpoutSystem.java

示例12: BirdBrainSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public BirdBrainSystem() {
    super(Aspect.all(Pos.class, BirdBrain.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-artax,代码行数:4,代码来源:BirdBrainSystem.java

示例13: AchievementSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public AchievementSystem() {
    super(Aspect.all(Achievement.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-little-fortune-planet,代码行数:4,代码来源:AchievementSystem.java

示例14: CollisionSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public CollisionSystem() {
    super(Aspect.all(BodyComponent.class));
}
 
开发者ID:AlexMog,项目名称:SurvivalMMO,代码行数:4,代码来源:CollisionSystem.java

示例15: GhostSystem

import com.artemis.Aspect; //导入方法依赖的package包/类
public GhostSystem() {
    super(Aspect.all(Ghost.class));
}
 
开发者ID:DaanVanYperen,项目名称:odb-little-fortune-planet,代码行数:4,代码来源:GhostSystem.java


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