Esempio n. 1
0
 public Monster(char c, TCODColor color, Map map, int health)
     : base(c, color)
 {
     Health = health;
     map.AddCreature(this);
     _ai = new MonsterAI(this);
     _ai.SetMap(map);
 }
Esempio n. 2
0
 public Monster(char c, TCODColor color, Map map, int health)
     : base(c, color)
 {
     Health = health;
     map.AddCreature(this);
     _ai = new MonsterAI(this);
     _ai.SetMap(map);
 }
Esempio n. 3
0
        public override bool PlaceAt(int x, int y, Map map)
        {
            if (CurrentMap != map)
            {
                if (CurrentMap != null)
                {
                    CurrentMap.RemoveCreature(this);
                }
                map.AddCreature(this);
                _ai.SetMap(map);
            }
            bool ret = base.PlaceAt(x, y, map);

            return(ret);
        }