![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <PokemonFighter.hpp>
Public Member Functions | |
| PokemonFighter (Pokemon *originalPokemon) | |
| const Attack & | GetAttack () const |
| const Defense & | GetDefense () const |
| const SpecialAttack & | GetSpecialAttack () const |
| const SpecialDefense & | GetSpecialDefense () const |
| const Speed & | GetSpeed () const |
| const TypeInfo & | GetType1 () const |
| Specifics to the Original Pokemon {. | |
| const TypeInfo & | GetType2 () const |
| float | GetTypeEffectFactor (const TypeInfo &type) const |
IBattleEntity members | |
| virtual const String & | GetName () const |
| virtual const UInt16 & | GetLevel () const |
| virtual const Gender & | GetGender () const |
| virtual const UInt16 & | GetCurrentHP () const |
| virtual const UInt16 & | GetMaxHP () const |
| virtual float | GetHPPercentage () const |
| virtual const collection::Array< PokemonMove * > & | GetMoves () const |
| virtual const PokemonMove & | GetMove (int index) const |
| virtual const PokemonStat & | GetStats () 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 | |
| Pokemon * | originalPokemon_ |
| PokemonStat | stats_ |
Definition at line 11 of file PokemonFighter.hpp.
| yap::PokemonFighter::PokemonFighter | ( | Pokemon * | originalPokemon | ) |
Definition at line 8 of file PokemonFighter.cpp.
| const Attack & yap::PokemonFighter::GetAttack | ( | ) | const |
Definition at line 53 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 89 of file PokemonFighter.cpp.
| const Defense & yap::PokemonFighter::GetDefense | ( | ) | const |
Definition at line 58 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 16 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 99 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 84 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 94 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 119 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 114 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 79 of file PokemonFighter.cpp.
| const SpecialAttack & yap::PokemonFighter::GetSpecialAttack | ( | ) | const |
Definition at line 63 of file PokemonFighter.cpp.
| const SpecialDefense & yap::PokemonFighter::GetSpecialDefense | ( | ) | const |
Definition at line 67 of file PokemonFighter.cpp.
| const Speed & yap::PokemonFighter::GetSpeed | ( | ) | const |
|
virtual |
Implements yap::IBattleEntity.
Definition at line 104 of file PokemonFighter.cpp.
| const TypeInfo & yap::PokemonFighter::GetType1 | ( | ) | const |
Specifics to the Original Pokemon {.
Definition at line 38 of file PokemonFighter.cpp.
| const TypeInfo & yap::PokemonFighter::GetType2 | ( | ) | const |
| float yap::PokemonFighter::GetTypeEffectFactor | ( | const TypeInfo & | type | ) | const |
Definition at line 48 of file PokemonFighter.cpp.
|
protectedvirtual |
Reimplemented in ycl::PokemonFighter.
Definition at line 151 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 127 of file PokemonFighter.cpp.
|
private |
Definition at line 134 of file PokemonFighter.cpp.
|
virtual |
Implements yap::IBattleEntity.
Definition at line 109 of file PokemonFighter.cpp.
|
virtual |
Makes the object evolve for one frame of the game.
| dt | Delta time since the last frame. |
Implements yap::IUpdateable.
Definition at line 146 of file PokemonFighter.cpp.
| Event< const IBattleEntity&, const ChangeEventArgs<const HitPoint&>&> yap::PokemonFighter::OnHPChanged |
Definition at line 56 of file PokemonFighter.hpp.
|
private |
Reimplemented in ycl::PokemonFighter.
Definition at line 61 of file PokemonFighter.hpp.
|
private |
Definition at line 62 of file PokemonFighter.hpp.