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