Example #1
0
        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;
        }
Example #2
0
        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;
        }
Example #3
0
        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;
        }
Example #4
0
        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;
        }