/// <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]); }
public Pokemon(string name, int hp, int attackStat, int defenseStat, PokemonType type) { Name = name; HP = hp; AttackStat = attackStat; DefenseStat = defenseStat; Type = type; _currentHP = HP; }
public Pokemon(string name, PokemonType type, PokemonType effectiveAgainst) { Name = name; Type = type; EffectiveAgainst = effectiveAgainst; }
public PlayerPokemon(string name, int hp, int attackStat, int defenseStat, PokemonType type) : base(name, hp, attackStat, defenseStat, type) { }