public Point GetNextPoint() { Point head = pList.Last(); Point nextPoint = new Point(head); nextPoint.Move(1, dir); return nextPoint; }
public Point GetNextStep() { Point head = PointList.Last(); Point nextPoin = new Point(head); nextPoin.Move(1, direct); return nextPoin; }
public Point GetNextStep() { Point head = PointList.Last(); Point nextPoin = new Point(head); nextPoin.Move(1, direct); return(nextPoin); }
public Snake(Point tail, int lenght, Direction _direction) { pList = new List <Point>(); for (int i = 0; i < lenght; i++) { Point p = new Point(tail); p.Move(i, _direction); pList.Add(p); } }
public Snake(Point tail, int lenght, Direction _dir) { dir = _dir; pList = new List<Point>(); for (int i = 0; i < lenght; i++) { Point p = new Point(tail); p.Move(i, dir); pList.Add(p); } }
public Snape(Point tail , int lenght , Direction _direction) { direction = _direction; pLine = new List<Point>(); for(int i = 0 ; i< lenght; i++) { Point p = new Point(tail); p.Move(i, _direction); pLine.Add(p); } }
public Snake(Point pstart, int length, Direction direction) { dir = direction; pList = new List <Point>(); for (int i = 0; i < length; i++) { Point p1 = new Point(pstart); p1.Move(i, dir); pList.Add(p1); } }
public Snake(Point tail, int length, Direction _direct) { PointList = new List<Point>(); direct = _direct; for (int i = 0; i < length; i++) { Point p = new Point(tail); p.Move(i, direct); PointList.Add(p); } }
public Snake(Point tail, int length, Direction _direct) { PointList = new List <Point>(); direct = _direct; for (int i = 0; i < length; i++) { Point p = new Point(tail); p.Move(i, direct); PointList.Add(p); } }