Back to project page Ready-Set-Rogue.
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.
package com.warsheep.scamp.components; /* w w w.j ava2 s. c om*/ import com.badlogic.ashley.core.Component; public class StateComponent extends Component{ public State state = State.IDLE; public Directionality direction = Directionality.NONE; public float time = 0.0f; public boolean inProgress = false; public enum State { IDLE, DEAD, HURT, MOVING, ATTACKING, } public enum Directionality { UP, DOWN, LEFT, RIGHT, NONE } }