Android Open Source - Ready-Set-Rogue E C S Mapper






From Project

Back to project page Ready-Set-Rogue.

License

The source code is released under:

GNU General Public License

If you think the Android project Ready-Set-Rogue listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.warsheep.scamp.components;
/*  www . j  a  va2s .  c  o  m*/
import com.badlogic.ashley.core.ComponentMapper;

/**
 * The ECSMapper is a convenient container for all of the ComponentMappers in the game.
 * <p/>
 * ComponentMappers provide O(1) access to their designated ComponentType for the given entity,
 * making them the most efficient way to look up a Component of an Entity.
 */
public class ECSMapper {
    public static final ComponentMapper<VisibleComponent> visible =
            ComponentMapper.getFor(VisibleComponent.class);

    public static final ComponentMapper<TransformComponent> transform =
            ComponentMapper.getFor(TransformComponent.class);

    public static final ComponentMapper<MovementComponent> movement =
            ComponentMapper.getFor(MovementComponent.class);

    public static final ComponentMapper<ControllableComponent> control =
            ComponentMapper.getFor(ControllableComponent.class);

    public static final ComponentMapper<CameraComponent> camera =
            ComponentMapper.getFor(CameraComponent.class);

    public static final ComponentMapper<CollidableComponent> collide =
            ComponentMapper.getFor(CollidableComponent.class);

    public static final ComponentMapper<AttackerComponent> attack =
            ComponentMapper.getFor(AttackerComponent.class);

    public static final ComponentMapper<DamageableComponent> damage =
            ComponentMapper.getFor(DamageableComponent.class);

    public static final ComponentMapper<TileComponent> tile =
            ComponentMapper.getFor(TileComponent.class);

    public static final ComponentMapper<StateComponent> state =
            ComponentMapper.getFor(StateComponent.class);

    public static final ComponentMapper<FactionComponent> faction =
            ComponentMapper.getFor(FactionComponent.class);

    public static final ComponentMapper<LevelComponent> level =
            ComponentMapper.getFor(LevelComponent.class);

    public static final ComponentMapper<InventoryComponent> inventory =
            ComponentMapper.getFor(InventoryComponent.class);

    public static final ComponentMapper<DropComponent> drop =
            ComponentMapper.getFor(DropComponent.class);

    public static final ComponentMapper<AIControllableComponent> aiControllable =
            ComponentMapper.getFor(AIControllableComponent.class);
}




Java Source Code List

com.warsheep.scamp.AssetDepot.java
com.warsheep.scamp.IOSLauncher.java
com.warsheep.scamp.MapImporter.java
com.warsheep.scamp.PrefabFactory.java
com.warsheep.scamp.Scamp.java
com.warsheep.scamp.adt.BSPRectangle.java
com.warsheep.scamp.adt.Container.java
com.warsheep.scamp.adt.Pair.java
com.warsheep.scamp.adt.Room.java
com.warsheep.scamp.algorithms.BSPMapGenerator.java
com.warsheep.scamp.algorithms.Compositor.java
com.warsheep.scamp.android.AndroidLauncher.java
com.warsheep.scamp.client.HtmlLauncher.java
com.warsheep.scamp.components.AIControllableComponent.java
com.warsheep.scamp.components.AttackerComponent.java
com.warsheep.scamp.components.CameraComponent.java
com.warsheep.scamp.components.CollidableComponent.java
com.warsheep.scamp.components.ControllableComponent.java
com.warsheep.scamp.components.DamageableComponent.java
com.warsheep.scamp.components.DropComponent.java
com.warsheep.scamp.components.ECSMapper.java
com.warsheep.scamp.components.FactionComponent.java
com.warsheep.scamp.components.InventoryComponent.java
com.warsheep.scamp.components.LevelComponent.java
com.warsheep.scamp.components.MovementComponent.java
com.warsheep.scamp.components.StateComponent.java
com.warsheep.scamp.components.TileComponent.java
com.warsheep.scamp.components.TransformComponent.java
com.warsheep.scamp.components.VisibleComponent.java
com.warsheep.scamp.desktop.AssetPacker.java
com.warsheep.scamp.desktop.DesktopLauncher.java
com.warsheep.scamp.processors.AIProcessor.java
com.warsheep.scamp.processors.CameraProcessor.java
com.warsheep.scamp.processors.CollisionProcessor.java
com.warsheep.scamp.processors.CombatProcessor.java
com.warsheep.scamp.processors.ControlProcessor.java
com.warsheep.scamp.processors.DeathProcessor.java
com.warsheep.scamp.processors.LevelingProcessor.java
com.warsheep.scamp.processors.MovementProcessor.java
com.warsheep.scamp.processors.StateProcessor.java
com.warsheep.scamp.processors.TileProcessor.java
com.warsheep.scamp.processors.VisibilityProcessor.java
com.warsheep.scamp.screens.MainGameScreen.java
com.warsheep.scamp.screens.MainMenuScreen.java