Ejemplo n.º 1
0
        public Animal(Map map, int x, int y)
        {
            Random rand = new Random();

            Position.X = x;
            Position.Y = y;
            Sex        = rand.Next() > (Int32.MaxValue / 2);
            Home       = map;
            Verbose.Birth(this);
        }
Ejemplo n.º 2
0
        protected Animal(Map map)
        {
            Random rand = new Random();

            Position.X = rand.Next(map.Width);
            Position.Y = rand.Next(map.Height);
            Sex        = rand.Next() > (Int32.MaxValue / 2);
            Home       = map;
            Verbose.Birth(this);
        }