YAPOG  0.0.1
Yet Another Pokemon Online Game
WildBattle.cpp
Go to the documentation of this file.
2 
3 #include "Battle/WildBattle.hpp"
5 #include "Battle/Phase/SelectionPhase.hpp"
6 #include "Battle/Phase/EndPokemonSwitchPhase.hpp"
7 #include "Battle/Phase/RunWildBattlePhase.hpp"
8 #include "Battle/Battle.hpp"
10 
11 namespace ycl
12 {
14  : Battle (battleInterface)
15  {
16  // DO NOT INIT BATTLE PHASE HERE !
17  }
18 
20  {
21  }
22 
24  {
26 
27  BeginWildBattlePhase* beginWildBattlePhase =
30  SelectionPhase* selectionPhase = new SelectionPhase (*this, battleInterface_);
32 
33  beginWildBattlePhase->Init ();
34  selectionPhase->Init ();
35 
36  AddPhase (yap::BattlePhaseState::BeginBattle, beginWildBattlePhase);
40  }
41 
43  {
45  }
46 
48  {
49  Battle::HandleDraw (context);
50  }
51 
52  void WildBattle::HandleShow (bool isVisible)
53  {
54  }
55 
56  void WildBattle::HandleChangeColor (const sf::Color& color)
57  {
58  }
59 
60 } // namespace yap