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

#include <PokemonFighterTeam.hpp>

Inheritance diagram for yap::PokemonFighterTeam:
Collaboration diagram for yap::PokemonFighterTeam:

List of all members.

Public Member Functions

 PokemonFighterTeam ()
 PokemonFighterTeam (const PokemonTeam &pokemonTeam)
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 ()

Protected Member Functions

virtual void HandleUpdate (const Time &dt)
virtual PokemonFighterGetCurrentFighter ()=0
virtual const PokemonFighterGetCurrentFighter () const =0

Protected Attributes

int currentFighterIndex_

Detailed Description

Definition at line 11 of file PokemonFighterTeam.hpp.


Constructor & Destructor Documentation

yap::PokemonFighterTeam::PokemonFighterTeam ( )

Reimplemented in ycl::PokemonFighterTeam.

Definition at line 7 of file PokemonFighterTeam.cpp.

yap::PokemonFighterTeam::PokemonFighterTeam ( const PokemonTeam pokemonTeam)

Member Function Documentation

virtual PokemonFighter& yap::PokemonFighterTeam::GetCurrentFighter ( )
protectedpure virtual

Implemented in ycl::PokemonFighterTeam.

Here is the caller graph for this function:

virtual const PokemonFighter& yap::PokemonFighterTeam::GetCurrentFighter ( ) const
protectedpure virtual

Implemented in ycl::PokemonFighterTeam.

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

Implements yap::IBattleEntity.

Definition at line 29 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 24 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 44 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 19 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 34 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 54 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 49 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 14 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 59 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Reimplemented in ycl::PokemonFighterTeam.

Definition at line 78 of file PokemonFighterTeam.cpp.

Here is the caller graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 67 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

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

Implements yap::IBattleEntity.

Definition at line 39 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:

void yap::PokemonFighterTeam::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 73 of file PokemonFighterTeam.cpp.

Here is the call graph for this function:


Member Data Documentation

int yap::PokemonFighterTeam::currentFighterIndex_
protected

Definition at line 47 of file PokemonFighterTeam.hpp.


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