Пример #1
0
    public void AddMonsterToParty(int index, PartyMonsterInfo info)
    {
        if (index < 0 || index >= PocketMonsterParty.MAX_MONSTERS_IN_PARTY)
        {
            return;
        }

        party[index].Initialize(info);
    }
Пример #2
0
    public void Initialize(PartyMonsterInfo info)
    {
        this.monsterIndex = info.monsterIndex;
        this.monsterLevel = info.monsterLevel;

        this.hitPointsEV = info.hitPointsEV;
        this.attackEV    = info.attackEV;
        this.defenseEV   = info.defenseEV;
        this.specialEV   = info.specialEV;
        this.speedEV     = info.speedEV;

        this.hitPointsIV = info.hitPointsIV;
        this.attackIV    = info.attackIV;
        this.defenseIV   = info.defenseIV;
        this.specialIV   = info.specialIV;
        this.speedIV     = info.speedIV;

        this.move1.Initialize(info.move1);
        this.move2.Initialize(info.move2);
        this.move3.Initialize(info.move3);
        this.move4.Initialize(info.move4);
    }