public void PopulateMapWithItems(MapBattle map)
 {
     for (int i = 0; i < map.BoundX; ++i)
     {
         for (int j = 0; j < map.BoundY; ++j)
         {
             UInt32 dicethrow = _randomator.NSidedDice(200, 1);
             if (dicethrow == 19 && map.TileIsPassable(new Coords(i, j)))
             {
                 map.CreateItem(new Coords(i, j), Constants.ItemGeneratorShield);
             }
         }
     }
 }
        public void PopulateMapWithMonsters(MapBattle map)
        {
            map.CreateTeam(Color.Red);
            map.CreateTeam(Color.Blue); //team 1. fix this later.

            for (int i = 0; i < map.BoundX; ++i)
            {
                for (int j = 0; j < map.BoundY; ++j)
                {
                    UInt32 dicethrow = _randomator.NSidedDice(50, 1);
                    if (dicethrow == 20 && map.TileIsPassable(new Coords(i, j)))
                    {
                        Creature goblin = map.CreateCreature(new Coords(CoordsType.Tile, i, j), map.TeamRosterGetTeamFrom(1),
                                                             Constants.CreatureGeneratorGoblin, new BrainBasicAI(_drawer), _drawer, _interface);
                        //map.CreateSpellForCreature(goblin, Spells.SkillMelee, _drawer, _interface);
                    }
                }
            }
        }