YAPOG  0.0.1
Yet Another Pokemon Online Game
ycl::Pokemon Class Reference

#include <Pokemon.hpp>

Inheritance diagram for ycl::Pokemon:
Collaboration diagram for ycl::Pokemon:

List of all members.

Public Member Functions

 Pokemon (const yap::ID &staticID)
 Pokemon (const yap::ID &staticID, const yap::UInt16 &level, const bool &shiny)
 Pokemon (const yap::ID &uniqueID, const yap::ID &staticID, const yap::String &trainerName, const yap::String &nickname, const yap::PokemonStat &stats, const yap::Gender &gender, const yap::PokemonStatus &status, const bool shiny, const yap::Int16 &loyalty, const yap::PokemonMoveSet &moveSet, const yap::ID &natureID, const yap::uint &exp, const yap::UInt8 &boxNumber, const yap::ID &boxIndex, const yap::String &catchDate)
virtual ~Pokemon ()
yap::ISpriteGetIcon () const
 Getters.
yap::ISpriteGetGenderIcon () const
yap::ISpriteGetBattleBack () const
yap::ISpriteGetBattleFront () const
yap::ISpriteGetType1Icon () const
yap::ISpriteGetType2Icon () const
void PlayCry ()
- Public Member Functions inherited from yap::Pokemon
 Pokemon (const ID &uniqueID, const ID &staticID, const String &trainerName, const String &nickname, const PokemonStat &stats, const Gender &gender, const PokemonStatus &status, const bool shiny, const Int16 &loyalty, const PokemonMoveSet &moveSet, const ID &natureID, const uint &exp, const UInt8 &boxNumber, const ID &boxIndex, const String &catchDate)
const IDGetUniqueID () const
 Getters.
const IDGetStaticID () const
const StringGetTrainerName () const
const StringGetName () const
const StringGetNickname () const
const TypeInfoGetType1 () const
const TypeInfoGetType2 () const
float GetTypeEffectFactor (const TypeInfo &type) const
const uintGetTotalExperience () const
const UInt32GetExperienceToNextLevel () const
const uintGetTotalExperienceToNextLevel () const
float GetExperiencePercentage () const
const UInt16GetLevel () const
const bool GetShiny () const
const Int16GetLoyalty () const
const yap::NatureInfoGetNature () const
const yap::IDGetNatureID () const
const PokemonStatGetStats () const
const Gender & GetGender () const
const PokemonStatus & GetStatus () const
const yap::UInt8GetBoxNumber () const
const yap::IDGetBoxIndex () const
const yap::StringGetCatchDate () const
UInt16 GetCurrentHP () const
UInt16 GetMaxHP () const
const PokemonMoveSetGetMoveSet () const
const StringGetIconPath () const
bool LearnMove (const ID &moveID)
void ReplaceMove (const ID &moveID, UInt8 index)
void RestoreHP ()
 Restore all the hp of the Pokemon.
void TakeDamage (int damage)
void AddExperience (const Int32 &value)

Private Member Functions

 DISALLOW_COPY (Pokemon)
void Init ()
void LoadSprites ()

Private Attributes

yap::ISpriteicon_
yap::ISpritegenderIcon_
yap::ISpritebattleBack_
yap::ISpritebattleFront_
yap::ISpritetype1Icon_
yap::ISpritetype2Icon_
PokemonInfographicPokemonInfo_

Additional Inherited Members

- Static Public Attributes inherited from yap::Pokemon
static const int MAX_POKEMON_MOVE_NUMBER = 4
static const ID DEFAULT_NATURE_ID
static const UInt32 DEFAULT_EXPERIENCE_AMOUNT = 0
- Protected Attributes inherited from yap::Pokemon
ID uniqueID_
ID staticID_
String trainerName_
String nickname_
PokemonStat stats_
PokemonType type_
Gender gender_
PokemonStatus status_
bool shiny_
Int16 loyalty_
PokemonMoveSet moveSet_
PokemonInfopokemonInfo_
NatureInfonature_
PokemonExperienceexp_
UInt8 boxNumber_
ID boxIndex_
String catchDate_

Detailed Description

Definition at line 17 of file Pokemon.hpp.


Constructor & Destructor Documentation

ycl::Pokemon::Pokemon ( const yap::ID staticID)

Reimplemented from yap::Pokemon.

Definition at line 14 of file Pokemon.cpp.

Here is the call graph for this function:

ycl::Pokemon::Pokemon ( const yap::ID staticID,
const yap::UInt16 level,
const bool &  shiny 
)

Reimplemented from yap::Pokemon.

Definition at line 26 of file Pokemon.cpp.

Here is the call graph for this function:

ycl::Pokemon::Pokemon ( const yap::ID uniqueID,
const yap::ID staticID,
const yap::String trainerName,
const yap::String nickname,
const yap::PokemonStat stats,
const yap::Gender &  gender,
const yap::PokemonStatus &  status,
const bool  shiny,
const yap::Int16 loyalty,
const yap::PokemonMoveSet moveSet,
const yap::ID natureID,
const yap::uint exp,
const yap::UInt8 boxNumber,
const yap::ID boxIndex,
const yap::String catchDate 
)

Definition at line 41 of file Pokemon.cpp.

Here is the call graph for this function:

ycl::Pokemon::~Pokemon ( )
virtual

Definition at line 83 of file Pokemon.cpp.


Member Function Documentation

ycl::Pokemon::DISALLOW_COPY ( Pokemon  )
private
yap::ISprite & ycl::Pokemon::GetBattleBack ( ) const

Definition at line 165 of file Pokemon.cpp.

Here is the caller graph for this function:

yap::ISprite & ycl::Pokemon::GetBattleFront ( ) const

Definition at line 167 of file Pokemon.cpp.

Here is the caller graph for this function:

yap::ISprite & ycl::Pokemon::GetGenderIcon ( ) const

Definition at line 163 of file Pokemon.cpp.

Here is the caller graph for this function:

yap::ISprite & ycl::Pokemon::GetIcon ( ) const

Getters.

Definition at line 161 of file Pokemon.cpp.

Here is the caller graph for this function:

yap::ISprite & ycl::Pokemon::GetType1Icon ( ) const

Definition at line 169 of file Pokemon.cpp.

Here is the caller graph for this function:

yap::ISprite & ycl::Pokemon::GetType2Icon ( ) const

Definition at line 171 of file Pokemon.cpp.

Here is the caller graph for this function:

void ycl::Pokemon::Init ( )
private

Definition at line 94 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Pokemon::LoadSprites ( )
private

Definition at line 102 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Pokemon::PlayCry ( )

Definition at line 87 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

yap::ISprite* ycl::Pokemon::battleBack_
private

Definition at line 64 of file Pokemon.hpp.

yap::ISprite* ycl::Pokemon::battleFront_
private

Definition at line 65 of file Pokemon.hpp.

yap::ISprite* ycl::Pokemon::genderIcon_
private

Definition at line 63 of file Pokemon.hpp.

PokemonInfo* ycl::Pokemon::graphicPokemonInfo_
private

Definition at line 69 of file Pokemon.hpp.

yap::ISprite* ycl::Pokemon::icon_
private

Definition at line 62 of file Pokemon.hpp.

yap::ISprite* ycl::Pokemon::type1Icon_
private

Definition at line 66 of file Pokemon.hpp.

yap::ISprite* ycl::Pokemon::type2Icon_
private

Definition at line 67 of file Pokemon.hpp.


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