YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::PokemonStat Class Reference

#include <PokemonStat.hpp>

Collaboration diagram for yap::PokemonStat:

List of all members.

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 &copy)
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 HitPointGetHitPoint () const
const AttackGetAttack () const
const DefenseGetDefense () const
const SpecialAttackGetSpecialAttack () const
const SpecialDefenseGetSpecialDefense () const
const SpeedGetSpeed () const
Setters.
void LoadFromPokemonStat (const PokemonStat &stats)

Private Attributes

HitPoint hitPoint_
Attack attack_
Defense defense_
SpecialAttack specialAttack_
SpecialDefense specialDefense_
Speed speed_

Detailed Description

Definition at line 17 of file PokemonStat.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
pokeInfoBase statistics of the Pokemon.
levelLevel of the Pokemon.
natureInfoContains the nature factors of all stats.

Definition at line 72 of file PokemonStat.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Attack & yap::PokemonStat::GetAttack ( ) const

Definition at line 39 of file PokemonStat.cpp.

Here is the caller graph for this function:

const Defense & yap::PokemonStat::GetDefense ( ) const

Definition at line 42 of file PokemonStat.cpp.

Here is the caller graph for this function:

const HitPoint & yap::PokemonStat::GetHitPoint ( ) const

Definition at line 36 of file PokemonStat.cpp.

Here is the caller graph for this function:

const SpecialAttack & yap::PokemonStat::GetSpecialAttack ( ) const

Definition at line 45 of file PokemonStat.cpp.

Here is the caller graph for this function:

const SpecialDefense & yap::PokemonStat::GetSpecialDefense ( ) const

Definition at line 48 of file PokemonStat.cpp.

Here is the caller graph for this function:

const Speed & yap::PokemonStat::GetSpeed ( ) const

Definition at line 51 of file PokemonStat.cpp.

Here is the caller graph for this function:

void yap::PokemonStat::LoadFromPokemonStat ( const PokemonStat stats)

Definition at line 57 of file PokemonStat.cpp.

Here is the call graph for this function:

void yap::PokemonStat::ModifyHitPoint ( int  value)

Definition at line 67 of file PokemonStat.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonStat::RestoreHP ( )

Definition at line 108 of file PokemonStat.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonStat::SetCurrentHP ( const yap::UInt16 value)

Definition at line 54 of file PokemonStat.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Attack yap::PokemonStat::attack_
private

Definition at line 65 of file PokemonStat.hpp.

Defense yap::PokemonStat::defense_
private

Definition at line 66 of file PokemonStat.hpp.

HitPoint yap::PokemonStat::hitPoint_
private

Definition at line 64 of file PokemonStat.hpp.

SpecialAttack yap::PokemonStat::specialAttack_
private

Definition at line 67 of file PokemonStat.hpp.

SpecialDefense yap::PokemonStat::specialDefense_
private

Definition at line 68 of file PokemonStat.hpp.

Speed yap::PokemonStat::speed_
private

Definition at line 69 of file PokemonStat.hpp.


The documentation for this class was generated from the following files: