Ejemplo n.º 1
0
 /// <summary>
 /// Sets up a path when called
 /// </summary>
 /// <param name="dest"></param>
 private void FindPlayer(Cell dest)
 {
     if (Model == dest)
     {
         return;
     }
     _path = _pathFinder.CalculatePath(Model, dest, true);
     if (_path.Count > 2)
     {
         _path.RemoveAt(0);
         _path.RemoveAt(_path.Count - 1);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets up a path when called
 /// </summary>
 /// <param name="dest"></param>
 public void CallDog(Cell dest)
 {
     _path = _pathFinder.CalculatePath(Model, dest, true);
 }