Exemplo n.º 1
0
 private void InstantiateHeroes(List<AbstractHero> heroes)
 {
     Hero1 = heroes.SingleOrDefault(x => x.HeroTeam == Team.Red);
     Hero2 = heroes.SingleOrDefault(x => x.HeroTeam == Team.Blue);
 }
Exemplo n.º 2
0
 private void FillTable(int x, int y, AbstractHero hero, IEnumerable<AbstractCreature> creatures)
 {
     foreach (var creatureComponent in creatures)
     {
         var piece = new GamePiece(new Point(x, y));
         _gamePieces.Add(piece);
         _game.BlockOutTiles(x, y);
         creatureComponent.Count = 5;
         creatureComponent.Piece = new Point(x, y);
         creatureComponent.Index = _gamePieces.Count;
         hero.Creatures.Add(creatureComponent);
         Creatures.Add(creatureComponent);
         y -= 2;
     }
 }