Package de.nameless.gameEngine.util.StateMachine

Examples of de.nameless.gameEngine.util.StateMachine.State


    selectUnitAction = new Action("selectUnitAction");   
    deSelectUnitAction = new Action("deSelectUnitAction");   
    moveUnitAction = new Action("moveUnitAction");   
    attackUnitAction = new Action("attackUnitAction");   
   
    startState = new State("Start")
    unitSelected = new State("unitSelected");
    unitMovedState = new State("unitMoved");   
   
    startState.addTransition(selectUnitAction, unitSelected);
    unitSelected.addTransition(deSelectUnitAction, startState);
    unitSelected.addTransition(moveUnitAction, unitMovedState);
    unitMovedState.addTransition(moveUnitAction, startState);
View Full Code Here

TOP

Related Classes of de.nameless.gameEngine.util.StateMachine.State

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.