![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <GameplayScreen.hpp>
Public Member Functions | |
| GameplayScreen (yap::IDrawingContext &context) | |
| virtual | ~GameplayScreen () |
Public Member Functions inherited from ycl::BaseScreen | |
| virtual | ~BaseScreen () |
Public Member Functions inherited from yap::GameScreen | |
| GameScreen (const ScreenType &type) | |
| Initializes a GameScreen with the ScreenType type. | |
| virtual | ~GameScreen () |
| virtual void | Init () |
| Called once after the add into a IGameScreenManager. | |
| virtual void | Activate () |
| Called each time this IGameScreen is slected to be run. | |
| virtual void | Deactivate () |
| Called each time this IGameScreen is not running anymore. | |
| virtual void | NextFrame () |
| virtual const ScreenType & | Run (const Time &dt, IDrawingContext &context) |
| Performs one frame of the screen life. | |
| virtual const GuiManager & | GetGuiManager () const |
| Gets the root widget of this Screen. | |
| virtual GuiManager & | GetGuiManager () |
| Gets the root widget of this Screen. | |
| virtual const ScreenType & | GetType () const |
| Gets the unique type name of this Screen. | |
| virtual Event< IGameScreen & > & | OnGameExitedEvent () |
| virtual bool | OnEvent (const GuiEvent &guiEvent) |
| Treats an event. Transferts the event before treating it. | |
| virtual bool | OnPriorityEvent (const GuiEvent &guiEvent) |
| Treats an event. Treats the event before transfering it. | |
Public Member Functions inherited from yap::IGameScreen | |
| virtual | ~IGameScreen () |
Public Member Functions inherited from yap::IEventHandler | |
| virtual | ~IEventHandler () |
Protected Member Functions | |
| virtual void | HandleInit () |
| Behavior of Init. | |
| virtual void | HandleRun (const yap::Time &dt, yap::IDrawingContext &context) |
| Behavior of Run. | |
| virtual bool | HandleOnEvent (const yap::GuiEvent &guiEvent) |
| Behavior of OnEvent. | |
| virtual void | HandleActivate () |
| Behavior of Activate. | |
| virtual void | HandleDeactivate () |
| Behavior of Deactivate. | |
Protected Member Functions inherited from ycl::BaseScreen | |
| BaseScreen (const yap::ScreenType &type, yap::IDrawingContext &context) | |
Protected Member Functions inherited from yap::GameScreen | |
| void | ExitGame () |
| virtual bool | HandleOnPriorityEvent (const GuiEvent &guiEvent) |
| Behavior of OnPriorityEvent. | |
Private Member Functions | |
| DISALLOW_COPY (GameplayScreen) | |
| Map & | GetCurrentMap () |
| void | SetCurrentMap (Map &map) |
| void | SetPlayer (Player *player) |
| void | SetPlayerName () |
| void | UpdatePlayer (const yap::Time &dt) |
| void | HandleOnPlayerWarped () |
| void | ResetMoveController () |
| void | SendApplyForce (const yap::Vector2 &force) |
| void | SendGameInput (yap::GameInputType gameInputType, bool state) |
| void | CreateWorldDrawingPolicy () |
| virtual void | CreateGuiManager () |
Static Private Attributes | |
| static const yap::ScreenType | DEFAULT_NAME = "Gameplay" |
| static const yap::Vector2 | DEFAULT_WORLD_CAMERA_DEZOOM_FACTOR |
Additional Inherited Members | |
Protected Attributes inherited from ycl::BaseScreen | |
| yap::IDrawingContext & | context_ |
| Session & | session_ |
| yap::ContentManager & | contentManager_ |
| yap::ObjectFactory & | objectFactory_ |
| yap::WorldObjectStateFactory & | worldObjectStateFactory_ |
| yap::GameInputManager & | gameInputManager_ |
| yap::Logger & | logger_ |
Protected Attributes inherited from yap::GameScreen | |
| ScreenType | nextScreen_ |
| Type of the Screen to be executed on next frame. | |
| GuiManager * | guiManager_ |
| Root widget if this GameScreen. | |
Definition at line 31 of file GameplayScreen.hpp.
|
explicit |
Definition at line 77 of file GameplayScreen.cpp.
|
virtual |
Definition at line 98 of file GameplayScreen.cpp.
|
privatevirtual |
Reimplemented from yap::GameScreen.
Definition at line 523 of file GameplayScreen.cpp.
|
private |
|
private |
|
private |
|
protectedvirtual |
Behavior of Activate.
Reimplemented from yap::GameScreen.
Definition at line 385 of file GameplayScreen.cpp.
|
protectedvirtual |
Behavior of Deactivate.
Reimplemented from yap::GameScreen.
Definition at line 392 of file GameplayScreen.cpp.
|
protectedvirtual |
Behavior of Init.
Reimplemented from yap::GameScreen.
Definition at line 102 of file GameplayScreen.cpp.
|
protectedvirtual |
Behavior of OnEvent.
Reimplemented from yap::GameScreen.
Definition at line 259 of file GameplayScreen.cpp.
|
private |
Definition at line 490 of file GameplayScreen.cpp.
|
protectedvirtual |
Behavior of Run.
Reimplemented from yap::GameScreen.
Definition at line 239 of file GameplayScreen.cpp.
|
private |
Definition at line 461 of file GameplayScreen.cpp.
|
private |
Definition at line 495 of file GameplayScreen.cpp.
|
private |
Definition at line 505 of file GameplayScreen.cpp.
|
private |
Definition at line 402 of file GameplayScreen.cpp.
|
private |
Definition at line 412 of file GameplayScreen.cpp.
|
private |
Definition at line 424 of file GameplayScreen.cpp.
|
private |
Definition at line 469 of file GameplayScreen.cpp.
|
private |
Definition at line 79 of file GameplayScreen.hpp.
|
private |
Definition at line 101 of file GameplayScreen.hpp.
|
staticprivate |
Definition at line 72 of file GameplayScreen.hpp.
|
staticprivate |
Definition at line 74 of file GameplayScreen.hpp.
|
private |
Definition at line 85 of file GameplayScreen.hpp.
|
private |
Definition at line 103 of file GameplayScreen.hpp.
|
private |
Definition at line 89 of file GameplayScreen.hpp.
|
private |
Definition at line 91 of file GameplayScreen.hpp.
|
private |
Definition at line 83 of file GameplayScreen.hpp.
|
private |
Definition at line 94 of file GameplayScreen.hpp.
|
private |
Definition at line 92 of file GameplayScreen.hpp.
|
private |
Definition at line 82 of file GameplayScreen.hpp.
|
private |
Definition at line 81 of file GameplayScreen.hpp.
|
private |
Definition at line 96 of file GameplayScreen.hpp.
|
private |
Definition at line 97 of file GameplayScreen.hpp.
|
private |
Definition at line 99 of file GameplayScreen.hpp.
|
private |
Definition at line 76 of file GameplayScreen.hpp.
|
private |
Definition at line 77 of file GameplayScreen.hpp.