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

#include <PokemonMove.hpp>

Collaboration diagram for yap::PokemonMove:

List of all members.

Public Member Functions

 PokemonMove ()
 PokemonMove (const ID &skillID)
 PokemonMove (const PokemonMove &copy)
void SetSkillInfo (const ID &skillID)
const IDGetStaticID () const
 Getters.
const StringGetName () const
const UInt16GetPower () const
const UInt16GetCurrentPP () const
const UInt16GetMaxPP () const
const TypeInfoGetType () const
const UInt16GetCategory () const
void SetPP (const UInt16 &value)
 Setters.
void SetMaxPP (const UInt16 &value)
void Refill ()
 Reset the PP to the maxPP value.
void Use ()
 Decrease the currentPP value of 1.
void AddPP (int value)
 Increase the maxPP with value.
void RaiseToMaxPP ()
 Jump the maxPP value directly to the limiPPMax value.

Private Member Functions

 DISALLOW_ASSIGN (PokemonMove)
const UInt16GetLimitPPMax () const

Private Attributes

ID staticID_
UInt16 currentPP_
UInt16 maxPP_
SkillInfoskillInfo_

Static Private Attributes

static const ID DEFAULT_STATIC_ID
static const UInt16 DEFAULT_PP_VALUE = 0
static const UInt16 DEFAULT_MAX_PP_VALUE = 0

Detailed Description

Definition at line 13 of file PokemonMove.hpp.


Constructor & Destructor Documentation

yap::PokemonMove::PokemonMove ( )

Definition at line 13 of file PokemonMove.cpp.

yap::PokemonMove::PokemonMove ( const ID skillID)

Definition at line 22 of file PokemonMove.cpp.

Here is the call graph for this function:

yap::PokemonMove::PokemonMove ( const PokemonMove copy)

Definition at line 31 of file PokemonMove.cpp.

Here is the call graph for this function:


Member Function Documentation

void yap::PokemonMove::AddPP ( int  value)

Increase the maxPP with value.

Parameters:
valueThe value that will increase the maxPP field.

Definition at line 113 of file PokemonMove.cpp.

Here is the call graph for this function:

yap::PokemonMove::DISALLOW_ASSIGN ( PokemonMove  )
private
const UInt16 & yap::PokemonMove::GetCategory ( ) const

Definition at line 131 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt16 & yap::PokemonMove::GetCurrentPP ( ) const

Definition at line 62 of file PokemonMove.cpp.

Here is the caller graph for this function:

const UInt16 & yap::PokemonMove::GetLimitPPMax ( ) const
private

Definition at line 72 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt16 & yap::PokemonMove::GetMaxPP ( ) const

Definition at line 67 of file PokemonMove.cpp.

Here is the caller graph for this function:

const String & yap::PokemonMove::GetName ( ) const

Definition at line 46 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt16 & yap::PokemonMove::GetPower ( ) const

Definition at line 54 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const ID & yap::PokemonMove::GetStaticID ( ) const

Getters.

Definition at line 41 of file PokemonMove.cpp.

Here is the caller graph for this function:

const TypeInfo & yap::PokemonMove::GetType ( ) const

Definition at line 126 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonMove::RaiseToMaxPP ( )

Jump the maxPP value directly to the limiPPMax value.

Definition at line 121 of file PokemonMove.cpp.

Here is the call graph for this function:

void yap::PokemonMove::Refill ( )

Reset the PP to the maxPP value.

Definition at line 102 of file PokemonMove.cpp.

Here is the caller graph for this function:

void yap::PokemonMove::SetMaxPP ( const UInt16 value)

Definition at line 86 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonMove::SetPP ( const UInt16 value)

Setters.

Definition at line 81 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonMove::SetSkillInfo ( const ID skillID)

Definition at line 93 of file PokemonMove.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonMove::Use ( )

Decrease the currentPP value of 1.

Definition at line 107 of file PokemonMove.cpp.


Member Data Documentation

UInt16 yap::PokemonMove::currentPP_
private

Definition at line 49 of file PokemonMove.hpp.

const UInt16 yap::PokemonMove::DEFAULT_MAX_PP_VALUE = 0
staticprivate

Definition at line 55 of file PokemonMove.hpp.

const UInt16 yap::PokemonMove::DEFAULT_PP_VALUE = 0
staticprivate

Definition at line 54 of file PokemonMove.hpp.

const ID yap::PokemonMove::DEFAULT_STATIC_ID
staticprivate

Definition at line 53 of file PokemonMove.hpp.

UInt16 yap::PokemonMove::maxPP_
private

Definition at line 50 of file PokemonMove.hpp.

SkillInfo* yap::PokemonMove::skillInfo_
private

Definition at line 51 of file PokemonMove.hpp.

ID yap::PokemonMove::staticID_
private

Definition at line 48 of file PokemonMove.hpp.


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