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

#include <PokemonFighter.hpp>

Inheritance diagram for yap::PokemonFighter:
Collaboration diagram for yap::PokemonFighter:

List of all members.

Public Member Functions

 PokemonFighter (Pokemon *originalPokemon)
const AttackGetAttack () const
const DefenseGetDefense () const
const SpecialAttackGetSpecialAttack () const
const SpecialDefenseGetSpecialDefense () const
const SpeedGetSpeed () const
const TypeInfoGetType1 () const
 Specifics to the Original Pokemon {.
const TypeInfoGetType2 () const
float GetTypeEffectFactor (const TypeInfo &type) const
IBattleEntity members
virtual const StringGetName () const
virtual const UInt16GetLevel () const
virtual const Gender & GetGender () const
virtual const UInt16GetCurrentHP () const
virtual const UInt16GetMaxHP () const
virtual float GetHPPercentage () const
virtual const
collection::Array< PokemonMove * > & 
GetMoves () const
virtual const PokemonMoveGetMove (int index) const
virtual const PokemonStatGetStats () const
virtual void TakeDamage (int value)
virtual Event< const
IBattleEntity &, const
ChangeEventArgs< const
HitPoint & > & > & 
OnHPChangedEvent ()
IUpdateable members.

}

virtual void Update (const Time &dt)
 Makes the object evolve for one frame of the game.
- Public Member Functions inherited from yap::IBattleEntity
virtual ~IBattleEntity ()
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()

Public Attributes

Event< const IBattleEntity
&, const ChangeEventArgs
< const HitPoint & > & > 
OnHPChanged

Protected Member Functions

virtual void HandleUpdate (const Time &dt)

Private Member Functions

Private setters.
void SetCurrentHP (int value)

Private Attributes

PokemonoriginalPokemon_
PokemonStat stats_

Detailed Description

Definition at line 11 of file PokemonFighter.hpp.


Constructor & Destructor Documentation

yap::PokemonFighter::PokemonFighter ( Pokemon originalPokemon)

Definition at line 8 of file PokemonFighter.cpp.


Member Function Documentation

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

Definition at line 53 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt16 & yap::PokemonFighter::GetCurrentHP ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 89 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 58 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Gender & yap::PokemonFighter::GetGender ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 16 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

float yap::PokemonFighter::GetHPPercentage ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 99 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt16 & yap::PokemonFighter::GetLevel ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 84 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const UInt16 & yap::PokemonFighter::GetMaxHP ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 94 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const PokemonMove & yap::PokemonFighter::GetMove ( int  index) const
virtual

Implements yap::IBattleEntity.

Definition at line 119 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const collection::Array< PokemonMove * > & yap::PokemonFighter::GetMoves ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 114 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const yap::String & yap::PokemonFighter::GetName ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 79 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 63 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 67 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 72 of file PokemonFighter.cpp.

Here is the call graph for this function:

const PokemonStat & yap::PokemonFighter::GetStats ( ) const
virtual

Implements yap::IBattleEntity.

Definition at line 104 of file PokemonFighter.cpp.

Here is the caller graph for this function:

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

Specifics to the Original Pokemon {.

Definition at line 38 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 43 of file PokemonFighter.cpp.

Here is the call graph for this function:

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

Definition at line 48 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonFighter::HandleUpdate ( const Time dt)
protectedvirtual

Reimplemented in ycl::PokemonFighter.

Definition at line 151 of file PokemonFighter.cpp.

Here is the caller graph for this function:

Event< const IBattleEntity &, const ChangeEventArgs< const HitPoint & > & > & yap::PokemonFighter::OnHPChangedEvent ( )
virtual

Implements yap::IBattleEntity.

Definition at line 127 of file PokemonFighter.cpp.

Here is the caller graph for this function:

void yap::PokemonFighter::SetCurrentHP ( int  value)
private

Definition at line 134 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonFighter::TakeDamage ( int  value)
virtual

Implements yap::IBattleEntity.

Definition at line 109 of file PokemonFighter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PokemonFighter::Update ( const Time dt)
virtual

Makes the object evolve for one frame of the game.

Parameters:
dtDelta time since the last frame.

Implements yap::IUpdateable.

Definition at line 146 of file PokemonFighter.cpp.

Here is the call graph for this function:


Member Data Documentation

Event< const IBattleEntity&, const ChangeEventArgs<const HitPoint&>&> yap::PokemonFighter::OnHPChanged

Definition at line 56 of file PokemonFighter.hpp.

Pokemon* yap::PokemonFighter::originalPokemon_
private

Reimplemented in ycl::PokemonFighter.

Definition at line 61 of file PokemonFighter.hpp.

PokemonStat yap::PokemonFighter::stats_
private

Definition at line 62 of file PokemonFighter.hpp.


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