Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="direction">the starting direction</param>
 /// <param name="name">The name of this controller</param>
 /// <param name="index">The playerindex of this controller</param>
 /// <param name="movObjType">What type this controller controlls</param>
 /// <param name="baseController"></param>
 /// <param name="inputState">The input from inputdevices</param>
 public PlayerController(Direction direction, string name, int id, PlayerIndex index, MovObjType movObjType, InputState inputState)
     : base(id)
 {
     this.index = index;
     this.direction = direction;
     lastDirection = direction;
     this.Name = name;
     this.movObjType = movObjType;
     this.inputState = inputState;
 }
Пример #2
0
 /// <summary>
 /// Allows the screen to handle user input. Unlike Update, this method
 /// is only called when the screen is active, and not when some other
 /// screen has taken the focus.
 /// </summary>
 public abstract void HandleInput(InputState input);