public BullShit() { this._color = Color.Brown; this._speed = new Coords(1, 1, 0); Coords newCoords = new Coords(0); while (!GridCellEmpty(newCoords)) { newCoords.rnd(); } this.coords = newCoords; this._isFood = true; }
public Rabbit() { Coords newCoords = new Coords(0); while (!GridCellEmpty(newCoords)) { newCoords.rnd(); } this._color = Color.Gray; this._coords = newCoords; this._speed = new Coords(2, 2, 0); this._isFood = true; this.age = 1; }
public Snake() { Coords newCoords = new Coords(0); while (!GridCellEmpty(newCoords)) { newCoords.rnd(); } this._color = Color.Black; this._coords = newCoords; this._speed = new Coords(1, 1, 0); this.length = 1; this._isFood = false; }
public Fox() { Coords newCoords = new Coords(0); while (!GridCellEmpty(newCoords)) { newCoords.rnd(); } this._color = Color.Red; this._coords = newCoords; this._speed = new Coords(1, 1, 0); this._isFood = false; this.age = 1; this.food = DEFAULT_FOOD; }