![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <PokemonStat.hpp>
Public Member Functions | |
| PokemonStat () | |
| PokemonStat (const HitPoint &hp, const Attack &atk, const Defense &def, const SpecialAttack &speAtk, const SpecialDefense &speDef, const Speed &speed) | |
| PokemonStat (const PokemonStat ©) | |
| void | SetCurrentHP (const yap::UInt16 &value) |
| void | ModifyHitPoint (int value) |
| void | ComputeStats (const PokemonInfo &pokeInfo, const UInt16 &level, const NatureInfo &natureInfo) |
| Computes all the statistics of the Pokemon from its base statistics, its level and its nature. | |
| void | RestoreHP () |
Getters. | |
| const HitPoint & | GetHitPoint () const |
| const Attack & | GetAttack () const |
| const Defense & | GetDefense () const |
| const SpecialAttack & | GetSpecialAttack () const |
| const SpecialDefense & | GetSpecialDefense () const |
| const Speed & | GetSpeed () const |
Setters. | |
| void | LoadFromPokemonStat (const PokemonStat &stats) |
Private Attributes | |
| HitPoint | hitPoint_ |
| Attack | attack_ |
| Defense | defense_ |
| SpecialAttack | specialAttack_ |
| SpecialDefense | specialDefense_ |
| Speed | speed_ |
Definition at line 17 of file PokemonStat.hpp.
| yap::PokemonStat::PokemonStat | ( | ) |
Definition at line 6 of file PokemonStat.cpp.
| yap::PokemonStat::PokemonStat | ( | const HitPoint & | hp, |
| const Attack & | atk, | ||
| const Defense & | def, | ||
| const SpecialAttack & | speAtk, | ||
| const SpecialDefense & | speDef, | ||
| const Speed & | speed | ||
| ) |
Definition at line 10 of file PokemonStat.cpp.
| yap::PokemonStat::PokemonStat | ( | const PokemonStat & | copy | ) |
Definition at line 26 of file PokemonStat.cpp.
| void yap::PokemonStat::ComputeStats | ( | const PokemonInfo & | pokeInfo, |
| const UInt16 & | level, | ||
| const NatureInfo & | natureInfo | ||
| ) |
Computes all the statistics of the Pokemon from its base statistics, its level and its nature.
| pokeInfo | Base statistics of the Pokemon. |
| level | Level of the Pokemon. |
| natureInfo | Contains the nature factors of all stats. |
Definition at line 72 of file PokemonStat.cpp.
| const Attack & yap::PokemonStat::GetAttack | ( | ) | const |
| const Defense & yap::PokemonStat::GetDefense | ( | ) | const |
| const HitPoint & yap::PokemonStat::GetHitPoint | ( | ) | const |
| const SpecialAttack & yap::PokemonStat::GetSpecialAttack | ( | ) | const |
| const SpecialDefense & yap::PokemonStat::GetSpecialDefense | ( | ) | const |
| const Speed & yap::PokemonStat::GetSpeed | ( | ) | const |
| void yap::PokemonStat::LoadFromPokemonStat | ( | const PokemonStat & | stats | ) |
| void yap::PokemonStat::ModifyHitPoint | ( | int | value | ) |
Definition at line 67 of file PokemonStat.cpp.
| void yap::PokemonStat::RestoreHP | ( | ) |
Definition at line 108 of file PokemonStat.cpp.
| void yap::PokemonStat::SetCurrentHP | ( | const yap::UInt16 & | value | ) |
Definition at line 54 of file PokemonStat.cpp.
|
private |
Definition at line 65 of file PokemonStat.hpp.
|
private |
Definition at line 66 of file PokemonStat.hpp.
|
private |
Definition at line 64 of file PokemonStat.hpp.
|
private |
Definition at line 67 of file PokemonStat.hpp.
|
private |
Definition at line 68 of file PokemonStat.hpp.
|
private |
Definition at line 69 of file PokemonStat.hpp.