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

#include <Pokemon.hpp>

Inheritance diagram for yap::Pokemon:
Collaboration diagram for yap::Pokemon:

List of all members.

Public Member Functions

 Pokemon (const ID &staticID)
 Pokemon (const ID &staticID, const UInt16 &level, const bool &shiny)
 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)

Static Public Attributes

static const int MAX_POKEMON_MOVE_NUMBER = 4
static const ID DEFAULT_NATURE_ID
static const UInt32 DEFAULT_EXPERIENCE_AMOUNT = 0

Protected Attributes

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_

Private Member Functions

 DISALLOW_COPY (Pokemon)
void InitExperience ()
void InitMoveSet ()
void Evolve ()
void SpecifyGender ()

Detailed Description

Definition at line 21 of file Pokemon.hpp.


Constructor & Destructor Documentation

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

Reimplemented in ycl::Pokemon, and yse::Pokemon.

Definition at line 21 of file Pokemon.cpp.

Here is the call graph for this function:

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

Reimplemented in ycl::Pokemon, and yse::Pokemon.

Definition at line 60 of file Pokemon.cpp.

Here is the call graph for this function:

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 
)

Definition at line 104 of file Pokemon.cpp.

Here is the call graph for this function:


Member Function Documentation

void yap::Pokemon::AddExperience ( const Int32 value)

Definition at line 386 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::Pokemon::DISALLOW_COPY ( Pokemon  )
private
void yap::Pokemon::Evolve ( )
private

Definition at line 445 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const yap::ID & yap::Pokemon::GetBoxIndex ( ) const

Definition at line 344 of file Pokemon.cpp.

Here is the caller graph for this function:

const yap::UInt8 & yap::Pokemon::GetBoxNumber ( ) const

Definition at line 339 of file Pokemon.cpp.

Here is the caller graph for this function:

const yap::String & yap::Pokemon::GetCatchDate ( ) const

Definition at line 349 of file Pokemon.cpp.

Here is the caller graph for this function:

UInt16 yap::Pokemon::GetCurrentHP ( ) const

Definition at line 277 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

float yap::Pokemon::GetExperiencePercentage ( ) const

Definition at line 272 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt32 & yap::Pokemon::GetExperienceToNextLevel ( ) const

Definition at line 256 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Gender & yap::Pokemon::GetGender ( ) const

Definition at line 329 of file Pokemon.cpp.

Here is the caller graph for this function:

const String & yap::Pokemon::GetIconPath ( ) const

Definition at line 292 of file Pokemon.cpp.

Here is the call graph for this function:

const UInt16 & yap::Pokemon::GetLevel ( ) const

Definition at line 298 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Int16 & yap::Pokemon::GetLoyalty ( ) const

Definition at line 308 of file Pokemon.cpp.

Here is the caller graph for this function:

UInt16 yap::Pokemon::GetMaxHP ( ) const

Definition at line 282 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const PokemonMoveSet & yap::Pokemon::GetMoveSet ( ) const

Definition at line 430 of file Pokemon.cpp.

Here is the caller graph for this function:

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

Definition at line 211 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const yap::NatureInfo & yap::Pokemon::GetNature ( ) const

Definition at line 313 of file Pokemon.cpp.

Here is the caller graph for this function:

const yap::ID & yap::Pokemon::GetNatureID ( ) const

Definition at line 321 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const String & yap::Pokemon::GetNickname ( ) const

Definition at line 224 of file Pokemon.cpp.

Here is the caller graph for this function:

const bool yap::Pokemon::GetShiny ( ) const

Definition at line 303 of file Pokemon.cpp.

Here is the caller graph for this function:

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

Definition at line 201 of file Pokemon.cpp.

Here is the caller graph for this function:

const PokemonStat & yap::Pokemon::GetStats ( ) const

Definition at line 287 of file Pokemon.cpp.

Here is the caller graph for this function:

const PokemonStatus & yap::Pokemon::GetStatus ( ) const

Definition at line 334 of file Pokemon.cpp.

Here is the caller graph for this function:

const UInt32 & yap::Pokemon::GetTotalExperience ( ) const

Definition at line 245 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt32 & yap::Pokemon::GetTotalExperienceToNextLevel ( ) const

Definition at line 261 of file Pokemon.cpp.

Here is the call graph for this function:

const String & yap::Pokemon::GetTrainerName ( ) const

Definition at line 206 of file Pokemon.cpp.

Here is the caller graph for this function:

const TypeInfo & yap::Pokemon::GetType1 ( ) const

Definition at line 229 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const TypeInfo & yap::Pokemon::GetType2 ( ) const

Definition at line 234 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

float yap::Pokemon::GetTypeEffectFactor ( const TypeInfo type) const

Definition at line 239 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const ID & yap::Pokemon::GetUniqueID ( ) const

Getters.

Definition at line 196 of file Pokemon.cpp.

Here is the caller graph for this function:

void yap::Pokemon::InitExperience ( )
private

Definition at line 155 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Pokemon::InitMoveSet ( )
private

Definition at line 183 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::Pokemon::LearnMove ( const ID moveID)

Definition at line 435 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Pokemon::ReplaceMove ( const ID moveID,
UInt8  index 
)

Definition at line 440 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Pokemon::RestoreHP ( )

Restore all the hp of the Pokemon.

Definition at line 453 of file Pokemon.cpp.

Here is the call graph for this function:

void yap::Pokemon::SpecifyGender ( )
private

Definition at line 188 of file Pokemon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Pokemon::TakeDamage ( int  damage)

Definition at line 458 of file Pokemon.cpp.

Here is the call graph for this function:


Member Data Documentation

ID yap::Pokemon::boxIndex_
protected

Definition at line 110 of file Pokemon.hpp.

UInt8 yap::Pokemon::boxNumber_
protected

Definition at line 109 of file Pokemon.hpp.

String yap::Pokemon::catchDate_
protected

Definition at line 111 of file Pokemon.hpp.

const UInt32 yap::Pokemon::DEFAULT_EXPERIENCE_AMOUNT = 0
static

Definition at line 92 of file Pokemon.hpp.

const ID yap::Pokemon::DEFAULT_NATURE_ID
static

Definition at line 91 of file Pokemon.hpp.

PokemonExperience* yap::Pokemon::exp_
protected

Definition at line 108 of file Pokemon.hpp.

Gender yap::Pokemon::gender_
protected

Definition at line 101 of file Pokemon.hpp.

Int16 yap::Pokemon::loyalty_
protected

Definition at line 104 of file Pokemon.hpp.

const int yap::Pokemon::MAX_POKEMON_MOVE_NUMBER = 4
static

Definition at line 90 of file Pokemon.hpp.

PokemonMoveSet yap::Pokemon::moveSet_
protected

Definition at line 105 of file Pokemon.hpp.

NatureInfo* yap::Pokemon::nature_
protected

Definition at line 107 of file Pokemon.hpp.

String yap::Pokemon::nickname_
protected

Definition at line 98 of file Pokemon.hpp.

PokemonInfo* yap::Pokemon::pokemonInfo_
protected

Definition at line 106 of file Pokemon.hpp.

bool yap::Pokemon::shiny_
protected

Definition at line 103 of file Pokemon.hpp.

ID yap::Pokemon::staticID_
protected

Definition at line 96 of file Pokemon.hpp.

PokemonStat yap::Pokemon::stats_
protected

Definition at line 99 of file Pokemon.hpp.

PokemonStatus yap::Pokemon::status_
protected

Definition at line 102 of file Pokemon.hpp.

String yap::Pokemon::trainerName_
protected

Definition at line 97 of file Pokemon.hpp.

PokemonType yap::Pokemon::type_
protected

Definition at line 100 of file Pokemon.hpp.

ID yap::Pokemon::uniqueID_
protected

Definition at line 95 of file Pokemon.hpp.


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