YAPOG  0.0.1
Yet Another Pokemon Online Game
ycl::UpdateScreen Class Reference

#include <UpdateScreen.hpp>

Inheritance diagram for ycl::UpdateScreen:
Collaboration diagram for ycl::UpdateScreen:

List of all members.

Public Member Functions

 UpdateScreen (yap::IDrawingContext &context)
virtual ~UpdateScreen ()
- 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 ScreenTypeRun (const Time &dt, IDrawingContext &context)
 Performs one frame of the screen life.
virtual const GuiManagerGetGuiManager () const
 Gets the root widget of this Screen.
virtual GuiManagerGetGuiManager ()
 Gets the root widget of this Screen.
virtual const ScreenTypeGetType () 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 HandleActivate ()
 Behavior of Activate.
virtual void HandleRun (const yap::Time &dt, yap::IDrawingContext &context)
 Behavior of Run.
- 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 void CreateGuiManager ()
virtual void HandleDeactivate ()
 Behavior of Deactivate.
virtual bool HandleOnEvent (const GuiEvent &guiEvent)
 Behavior of OnEvent.
virtual bool HandleOnPriorityEvent (const GuiEvent &guiEvent)
 Behavior of OnPriorityEvent.

Private Member Functions

 DISALLOW_COPY (UpdateScreen)
void Update ()
void UpdateContentSize (int value)

Private Attributes

yap::UInt16 lastlength_
yap::FileCheckerfc_
yap::Label fileName_
yap::Label filePercentage_
yap::Label fileDownloaded_
yap::Label totalFile_
yap::PictureBoxbackgroundbox_
yap::PictureBoxforegroundbox_
yap::HorizontalLayoutfirstLayout_
yap::HorizontalLayoutsecondLayout_
yap::VerticalLayoutbigLayout_

Static Private Attributes

static const yap::ScreenType DEFAULT_NAME = "Update"

Additional Inherited Members

- Protected Attributes inherited from ycl::BaseScreen
yap::IDrawingContextcontext_
Sessionsession_
yap::ContentManagercontentManager_
yap::ObjectFactoryobjectFactory_
yap::WorldObjectStateFactoryworldObjectStateFactory_
yap::GameInputManagergameInputManager_
yap::Loggerlogger_
- Protected Attributes inherited from yap::GameScreen
ScreenType nextScreen_
 Type of the Screen to be executed on next frame.
GuiManagerguiManager_
 Root widget if this GameScreen.

Detailed Description

Definition at line 17 of file UpdateScreen.hpp.


Constructor & Destructor Documentation

ycl::UpdateScreen::UpdateScreen ( yap::IDrawingContext context)
explicit

Definition at line 16 of file UpdateScreen.cpp.

Here is the call graph for this function:

ycl::UpdateScreen::~UpdateScreen ( )
virtual

Definition at line 90 of file UpdateScreen.cpp.


Member Function Documentation

ycl::UpdateScreen::DISALLOW_COPY ( UpdateScreen  )
private
void ycl::UpdateScreen::HandleActivate ( )
protectedvirtual

Behavior of Activate.

Reimplemented from yap::GameScreen.

Definition at line 104 of file UpdateScreen.cpp.

Here is the call graph for this function:

void ycl::UpdateScreen::HandleInit ( )
protectedvirtual

Behavior of Init.

Reimplemented from yap::GameScreen.

Definition at line 43 of file UpdateScreen.cpp.

Here is the call graph for this function:

void ycl::UpdateScreen::HandleRun ( const yap::Time dt,
yap::IDrawingContext context 
)
protectedvirtual

Behavior of Run.

Reimplemented from yap::GameScreen.

Definition at line 122 of file UpdateScreen.cpp.

Here is the call graph for this function:

void ycl::UpdateScreen::Update ( )
private

Definition at line 140 of file UpdateScreen.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::UpdateScreen::UpdateContentSize ( int  value)
private

Definition at line 131 of file UpdateScreen.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

yap::PictureBox* ycl::UpdateScreen::backgroundbox_
private

Definition at line 46 of file UpdateScreen.hpp.

yap::VerticalLayout* ycl::UpdateScreen::bigLayout_
private

Definition at line 50 of file UpdateScreen.hpp.

const yap::ScreenType ycl::UpdateScreen::DEFAULT_NAME = "Update"
staticprivate

Definition at line 52 of file UpdateScreen.hpp.

yap::FileChecker* ycl::UpdateScreen::fc_
private

Definition at line 41 of file UpdateScreen.hpp.

yap::Label ycl::UpdateScreen::fileDownloaded_
private

Definition at line 44 of file UpdateScreen.hpp.

yap::Label ycl::UpdateScreen::fileName_
private

Definition at line 42 of file UpdateScreen.hpp.

yap::Label ycl::UpdateScreen::filePercentage_
private

Definition at line 43 of file UpdateScreen.hpp.

yap::HorizontalLayout* ycl::UpdateScreen::firstLayout_
private

Definition at line 48 of file UpdateScreen.hpp.

yap::PictureBox* ycl::UpdateScreen::foregroundbox_
private

Definition at line 47 of file UpdateScreen.hpp.

yap::UInt16 ycl::UpdateScreen::lastlength_
private

Definition at line 40 of file UpdateScreen.hpp.

yap::HorizontalLayout* ycl::UpdateScreen::secondLayout_
private

Definition at line 49 of file UpdateScreen.hpp.

yap::Label ycl::UpdateScreen::totalFile_
private

Definition at line 45 of file UpdateScreen.hpp.


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