Пример #1
0
        public Fight CreatePvMFight(Map map)
        {
            FightPlayerTeam  redTeam  = new FightPlayerTeam(0, map.GetRedFightPlacement());
            FightMonsterTeam blueTeam = new FightMonsterTeam(1, map.GetBlueFightPlacement());
            FightPvM         fightPvM = new FightPvM(this.m_idProvider.Pop(), map, blueTeam, redTeam);

            base.AddEntity(fightPvM.Id, fightPvM);
            return(fightPvM);
        }
Пример #2
0
        public FightPvM CreatePvMFight(Map map)
        {
            var challengersTeam = new FightPlayerTeam(TeamEnum.TEAM_CHALLENGER, map.GetRedFightPlacement());
            var defendersTeam   = new FightMonsterTeam(TeamEnum.TEAM_DEFENDER, map.GetBlueFightPlacement());

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

            AddEntity(fight.Id, fight);

            return(fight);
        }