Ejemplo n.º 1
0
 public void Add(PendingMovement pendingMovement)
 {
     if (_pendingMovements.Count < MAX_MOVEMENTS_IN_QUEUE)
     {
         _pendingMovements.Enqueue(pendingMovement);
     }
 }
Ejemplo n.º 2
0
 public void Add(PendingMovement pendingMovement)
 {
     if (_pendingMovements.Count < MAX_MOVEMENTS_IN_QUEUE)
     {
         _pendingMovements.Enqueue(pendingMovement);
     }
 }
Ejemplo n.º 3
0
 private void applyMovement(PendingMovement movement)
 {
     if (_owner.MovementController.CanMove(movement.Direction))
     {
         // _owner.MovementController.Position = movement.StartLocation;
         _owner.Move(movement.Direction);
     }
     movement.Dispose();
 }
Ejemplo n.º 4
0
 private void applyMovement(PendingMovement movement)
 {
     if (_owner.MovementController.CanMove(movement.Direction))
     {
         // _owner.MovementController.Position = movement.StartLocation;
         _owner.Move(movement.Direction);
     }
     movement.Dispose();
 }