![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <Battle.hpp>
Public Member Functions | |
| Battle (BattleInterface &battleInterface) | |
| virtual | ~Battle () |
IDrawable members. | |
| virtual void | Draw (yap::IDrawingContext &context) |
| virtual bool | IsVisible () const |
| virtual void | Show (bool isVisible) |
| virtual void | ChangeColor (const sf::Color &color) |
Getters. | |
| yap::ISprite & | GetBackground () const |
| Getters. | |
| yap::ISprite & | GetPlayerGround () const |
| yap::ISprite & | GetOpponentGround () const |
| yap::ISprite & | GetPlayerTrainerBack () const |
| const yap::Vector2 & | GetPlayerGroundPosition () const |
| const yap::Vector2 & | GetOpponentGroundPosition () const |
| const yap::Vector2 & | GetOpponentInfoPosition () const |
| const yap::Vector2 & | GetPokemonInfoPosition () const |
| IDrawableBattleEntity & | GetPlayerTeam () |
| Getters. | |
| IDrawableBattleEntity & | GetOpponent () |
Setters. | |
| void | SetPlayerTeam (PokemonFighterTeam *playerTeam) |
| Setters. | |
| void | SetOpponent (IDrawableBattleEntity *opponent) |
Public Member Functions inherited from yap::Battle | |
| Battle () | |
| void | Init () |
| void | DisplayMoves () |
| void | DisplayTeam () |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Public Member Functions inherited from yap::IDrawable | |
| virtual | ~IDrawable () |
Public Attributes | |
Events. | |
| yap::Event< const Battle & > | OnBattleEnd |
Static Public Attributes | |
| static const yap::Vector2 | DEFAULT_OPPONENT_GROUND_SPRITES_SCALE = yap::Vector2 (0.75f, 0.75f) |
Protected Member Functions | |
| virtual void | HandleInit () |
| virtual void | HandleUpdate (const yap::Time &dt) |
| virtual void | HandleDraw (yap::IDrawingContext &context) |
| virtual void | HandleShow (bool isVisible) |
| virtual void | HandleChangeColor (const sf::Color &color) |
Protected Member Functions inherited from yap::Battle | |
| void | AddPhase (const BattlePhaseState &battlePhaseState, BattlePhase *battlePhase) |
Protected Attributes | |
| bool | isVisible_ |
| sf::Color | color_ |
| BattleInterface & | battleInterface_ |
Static Protected Attributes | |
| static const bool | DEFAULT_VISIBLE_STATE = true |
| static const sf::Color | DEFAULT_COLOR = sf::Color () |
Private Attributes | |
| yap::ISprite * | background_ |
| General sprites. | |
| yap::ISprite * | playerGround_ |
| yap::ISprite * | opponentGround_ |
| yap::ISprite * | playerTrainerBack_ |
| yap::Vector2 | playerGroundPosition_ |
| Sprite positions. | |
| yap::Vector2 | opponentGroundPosition_ |
| yap::Vector2 | opponentInfoPosition_ |
| yap::Vector2 | pokemonInfoPosition_ |
| IDrawableBattleEntity * | playerTeam_ |
| IDrawableBattleEntity * | opponent_ |
Definition at line 21 of file Battle.hpp.
| ycl::Battle::Battle | ( | BattleInterface & | battleInterface | ) |
Definition at line 23 of file Battle.cpp.
|
virtual |
Definition at line 41 of file Battle.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 155 of file Battle.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 135 of file Battle.cpp.
| yap::ISprite & ycl::Battle::GetBackground | ( | ) | const |
Getters.
Definition at line 95 of file Battle.cpp.
|
virtual |
Implements yap::Battle.
Definition at line 122 of file Battle.cpp.
| yap::ISprite & ycl::Battle::GetOpponentGround | ( | ) | const |
| const yap::Vector2 & ycl::Battle::GetOpponentGroundPosition | ( | ) | const |
| const yap::Vector2 & ycl::Battle::GetOpponentInfoPosition | ( | ) | const |
| yap::ISprite & ycl::Battle::GetPlayerGround | ( | ) | const |
| const yap::Vector2 & ycl::Battle::GetPlayerGroundPosition | ( | ) | const |
|
virtual |
Getters.
Implements yap::Battle.
Definition at line 119 of file Battle.cpp.
| yap::ISprite & ycl::Battle::GetPlayerTrainerBack | ( | ) | const |
| const yap::Vector2 & ycl::Battle::GetPokemonInfoPosition | ( | ) | const |
|
protectedvirtual |
Reimplemented in ycl::WildBattle.
Definition at line 184 of file Battle.cpp.
|
protectedvirtual |
Reimplemented in ycl::WildBattle.
Definition at line 170 of file Battle.cpp.
|
protectedvirtual |
Load sprites
Adjust sprites
Reimplemented from yap::Battle.
Reimplemented in ycl::WildBattle.
Definition at line 49 of file Battle.cpp.
|
protectedvirtual |
Reimplemented in ycl::WildBattle.
Definition at line 180 of file Battle.cpp.
|
protectedvirtual |
Reimplemented from yap::Battle.
Reimplemented in ycl::WildBattle.
Definition at line 162 of file Battle.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 143 of file Battle.cpp.
| void ycl::Battle::SetOpponent | ( | IDrawableBattleEntity * | opponent | ) |
| void ycl::Battle::SetPlayerTeam | ( | PokemonFighterTeam * | playerTeam | ) |
|
virtual |
Implements yap::IDrawable.
Definition at line 148 of file Battle.cpp.
|
private |
General sprites.
Definition at line 83 of file Battle.hpp.
|
protected |
Definition at line 79 of file Battle.hpp.
|
protected |
Reimplemented in ycl::WildBattle.
Definition at line 78 of file Battle.hpp.
|
staticprotected |
Reimplemented in ycl::WildBattle.
Definition at line 75 of file Battle.hpp.
|
static |
Definition at line 59 of file Battle.hpp.
|
staticprotected |
Reimplemented in ycl::WildBattle.
Definition at line 74 of file Battle.hpp.
|
protected |
Reimplemented in ycl::WildBattle.
Definition at line 77 of file Battle.hpp.
| yap::Event<const Battle&> ycl::Battle::OnBattleEnd |
Definition at line 63 of file Battle.hpp.
|
private |
Definition at line 96 of file Battle.hpp.
|
private |
Definition at line 85 of file Battle.hpp.
|
private |
Definition at line 90 of file Battle.hpp.
|
private |
Definition at line 91 of file Battle.hpp.
|
private |
Definition at line 84 of file Battle.hpp.
|
private |
Sprite positions.
Definition at line 89 of file Battle.hpp.
|
private |
Definition at line 95 of file Battle.hpp.
|
private |
Definition at line 86 of file Battle.hpp.
|
private |
Definition at line 92 of file Battle.hpp.