Пример #1
0
        public FightPvT CreatePvTFight(Map map)
        {
            FightTaxCollectorAttackersTeam redTeam  = new FightTaxCollectorAttackersTeam(0, map.GetRedFightPlacement());
            FightTaxCollectorDefenderTeam  blueTeam = new FightTaxCollectorDefenderTeam(1, map.GetBlueFightPlacement());
            FightPvT fightPvT = new FightPvT(this.m_idProvider.Pop(), map, blueTeam, redTeam);

            base.AddEntity(fightPvT.Id, fightPvT);
            return(fightPvT);
        }
Пример #2
0
        public FightPvT CreatePvTFight(Map map)
        {
            var challengersTeam = new FightTaxCollectorAttackersTeam(TeamEnum.TEAM_CHALLENGER, map.GetRedFightPlacement());
            var defendersTeam   = new FightTaxCollectorDefenderTeam(TeamEnum.TEAM_DEFENDER, map.GetBlueFightPlacement());

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

            AddEntity(fight.Id, fight);

            return(fight);
        }
Пример #3
0
 public FightPvT(int id, Map fightMap, FightTaxCollectorDefenderTeam blueTeam, FightTaxCollectorAttackersTeam redTeam) : base(id, fightMap, blueTeam, redTeam)
 {
 }