public void CreatePlayers()
        {
            // 1b- CREAR A LOS DOS PLAYERS SEGUN LA CONFIGURATION DATA
            Player playerOne = new Player(0);

            playerOne.SetStatsAndAbilities(OccupierAbilityDatabase.CreatePlayerAbilities(playerOne), OccupierStatDatabase.CreatePlayerStat());

            Player playerTwo = new Player(1);

            playerTwo.SetStatsAndAbilities(OccupierAbilityDatabase.CreatePlayerAbilities(playerTwo), OccupierStatDatabase.CreatePlayerStat());



            // DEBERIAMOS TENER UN ABILITYMODIFIER MANAGER O ALGO SIMILIAR PARA ENCARGARSE DE ESTO TAL VEZ
            //SpawnAbility spw = (SpawnAbility)playerOne.Abilities[ABILITYTYPE.SPAWN];
            //ChangeUnitClassAbilityModifier ab = new ChangeUnitClassAbilityModifier(playerOne);
            //spw.AddAbilityModifier(ab);
            //CanceclSpawnAbilityModifier cancelSpawn = new CanceclSpawnAbilityModifier(playerOne);
            //spw.AddAbilityModifier(cancelSpawn);

            //TestAbilityModifier cnlEnemy = new TestAbilityModifier(playerTwo);
            //IAddSimpleAbilityActionModifierCommand simple = new IAddSimpleAbilityActionModifierCommand(playerTwo.GeneralModifiers, cnlEnemy);
            //Invoker.AddNewCommand(simple);
            //Invoker.ExecuteCommands();

            players[0] = playerOne;
            players[1] = playerTwo;
        }
Beispiel #2
0
 public KimbokoCombine(List <Kimboko> kimbokos, int ID, Player ownerPlayer, MOVEDIRECTIONTYPE moveDirectionerType)
     : base(ID, ownerPlayer, unitType, moveDirectionerType)
 {
     this.kimbokos = OccupierStatDatabase.GetCombineKimbokoOrder(kimbokos);
     Stats         = OccupierStatDatabase.CreateKimbokoCombineStat(kimbokos);
     Abilities     = OccupierAbilityDatabase.CreateKimbokoAbilities(this);
 }
Beispiel #3
0
        public KimbokoX(int ID, Player ownerPlayer) : base(ID, ownerPlayer, unitType, moveDirectionerType)
        {
            if (ownerPlayer.ID == 1)
            {
                MoveDirectionerType = MOVEDIRECTIONTYPE.CROSSLEFT;
            }

            Stats     = OccupierStatDatabase.CreateKimbokoXStat();
            Abilities = OccupierAbilityDatabase.CreateKimbokoAbilities(this);
            //AttackPowerStat attackPow = new AttackPowerStat(2, 2);
            //AttackRangeStat attackRan = new AttackRangeStat(1, 3);
            //MoveRangeStat moveRan = new MoveRangeStat(1, 3);
            //HealthStat healthStat = new HealthStat(2, 2);
            //ActionPointStat actionPStat = new ActionPointStat(2, 2);
            //Stats = new Dictionary<int, Stat>();
            //Stats.Add(attackPow.id, attackPow);
            //Stats.Add(attackRan.id, attackRan);
            //Stats.Add(moveRan.id, moveRan);
            //Stats.Add(healthStat.id, healthStat);
            //Stats.Add(actionPStat.id, actionPStat);
        }