Example #1
0
 public void RemoveMover(BaseMovable baseMover)
 {
     if (Movers.ContainsKey(baseMover))
     {
         Movers[baseMover].Cancel();
         Movers.Remove(baseMover);
     }
 }
Example #2
0
 public PathMover(BaseMovable toMove, AbstractPath path, ICompleteAble movementComplete)
 {
     MovementComplete       = movementComplete;
     ToMove                 = toMove;
     Path                   = path;
     ToMove.Moving          = true;
     ToMove.MovingDirection = new Vector2();
     NextPosition           = new Point();
 }
Example #3
0
 public AbstractPath GetPath(BaseMovable mover)
 {
     if (Movers.ContainsKey(mover))
     {
         return(Movers[mover].Path);
     }
     else
     {
         return(null);
     }
 }