Example #1
0
 /// <summary>
 /// Sets a new StateType with a remaining time to finish it and plays the animation of the given StateType at this StateManager owner MapElement
 /// </summary>
 /// <param name="newState">The new state of the StateManager's MapElement</param>
 public void UpdatedState(MapElementState newState)
 {
     currentState = newState;
 }
Example #2
0
 /// <summary>
 /// The constructor of the class
 /// </summary>
 /// <param name="owner">The MapElement hosting this StateManager</param>
 /// <param name="currentState">The initial State of the owner of this StateManager</param>
 public StateManager(MapElement owner, MapElementState currentState)
 {
     this.owner        = owner;
     this.currentState = currentState;
 }