Beispiel #1
0
        public Fight CreateDuel(Map map)
        {
            FightPlayerTeam redTeam   = new FightPlayerTeam(0, map.GetRedFightPlacement());
            FightPlayerTeam blueTeam  = new FightPlayerTeam(1, map.GetBlueFightPlacement());
            FightDuel       fightDuel = new FightDuel(this.m_idProvider.Pop(), map, blueTeam, redTeam);

            base.AddEntity(fightDuel.Id, fightDuel);
            return(fightDuel);
        }
Beispiel #2
0
        public FightDuel CreateDuel(Map map)
        {
            var challengersTeam = new FightPlayerTeam(TeamEnum.TEAM_CHALLENGER, map.GetRedFightPlacement());
            var defendersTeam   = new FightPlayerTeam(TeamEnum.TEAM_DEFENDER, map.GetBlueFightPlacement());

            var fight = new FightDuel(m_idProvider.Pop(), map, defendersTeam, challengersTeam);

            AddEntity(fight.Id, fight);

            return(fight);
        }