예제 #1
0
 public ChessMove(Vector2 vector, MoveBehavior.MoveCapabilities moveCapabilities)
 {
     this.X = vector.X;
     this.Y = vector.Y;
     this.moveCapabilities = moveCapabilities;
 }
예제 #2
0
 public MoveAttack(MoveBehavior behavior)
     : base()
 {
     this.MoveBehavior = behavior;
 }
예제 #3
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public Entity()
 {
     _AttackBehavior = new AttackBehavior();
     _MoveBehavior = new MoveBehavior();
     Forward = new Vector2(0, 1); // Default to facing down
 }