コード例 #1
0
    /// <summary>
    /// Calculate the modifier based off of the two pokemon
    /// </summary>
    /// <param name="at"></param>
    /// <param name="vt"></param>
    /// <returns></returns>
    private float CalculateModifier(Pokemon.PokemonType at, Pokemon.PokemonType vt)
    {
        int attackerID = (int)at;
        int victomID   = (int)vt;

        return(typeMatchupModifierTable[attackerID, victomID]);
    }
コード例 #2
0
 public Pokemon(string name, int hp, int attackStat, int defenseStat, PokemonType type)
 {
     Name        = name;
     HP          = hp;
     AttackStat  = attackStat;
     DefenseStat = defenseStat;
     Type        = type;
     _currentHP  = HP;
 }
コード例 #3
0
ファイル: Pokemon.cs プロジェクト: MartinMalinda/georgevana
 public Pokemon(string name, PokemonType type, PokemonType effectiveAgainst)
 {
     Name             = name;
     Type             = type;
     EffectiveAgainst = effectiveAgainst;
 }
コード例 #4
0
 public PlayerPokemon(string name, int hp, int attackStat, int defenseStat, PokemonType type) : base(name, hp, attackStat, defenseStat, type)
 {
 }