Example #1
0
 public virtual bool MoveToLeft()
 {
     if (!CanMove("Left"))
     {
         return(false);
     }
     else
     {
         CurrentSquare.LeftSquare.AddPlayElement(this);
         CurrentSquare.RemovePlayElement();
         CurrentSquare = CurrentSquare.LeftSquare;
         return(true);
     }
 }
Example #2
0
 public virtual bool MoveToBenath()
 {
     if (!CanMove("Down"))
     {
         return(false);
     }
     else
     {
         CurrentSquare.DownSquare.AddPlayElement(this);
         CurrentSquare.RemovePlayElement();
         CurrentSquare = CurrentSquare.DownSquare;
         return(true);
     }
 }
Example #3
0
 public virtual void Destroy()
 {
     CurrentSquare.RemovePlayElement();
     //CurrentSquare = null; // coment out
 }
Example #4
0
 public void Destroy()
 {
     CurrentSquare.RemovePlayElement();
 }