#include <RenderListener.h>
Public Member Functions | |
RenderListener (IPhysic &physic, IRender &render, Camera &camera, pMouseDevice mouse, pKeyboardDevice keyboard, const KeyboardMap &keyMap, Gui *gui, Player *player, IWindow &window, IAudio &audio) | |
Contructor. | |
virtual | ~RenderListener () |
void | eventRender (void) |
Updates and redraws the game. | |
void | eventPaint (void) |
void | guiInstanceCallback (pIControl source) |
Callback method for GUI buttons. | |
Static Public Member Functions | |
static void | guiCallback (pIControl source) |
static void | setInstance (RenderListener *instance) |
Render literner class. This class handels render events.
Definition at line 12 of file RenderListener.h.
RenderListener::RenderListener | ( | IPhysic & | physic, | |
IRender & | render, | |||
Camera & | camera, | |||
pMouseDevice | mouse, | |||
pKeyboardDevice | keyboard, | |||
const KeyboardMap & | keyMap, | |||
Gui * | gui, | |||
Player * | player, | |||
IWindow & | window, | |||
IAudio & | audio | |||
) |
Contructor.
Definition at line 12 of file RenderListener.cpp.
RenderListener::~RenderListener | ( | ) | [virtual] |
Definition at line 59 of file RenderListener.cpp.
void RenderListener::eventPaint | ( | void | ) | [virtual] |
Implements EventRenderListener.
Definition at line 497 of file RenderListener.cpp.
void RenderListener::eventRender | ( | void | ) | [virtual] |
Updates and redraws the game.
Implements EventRenderListener.
Definition at line 63 of file RenderListener.cpp.
void RenderListener::guiCallback | ( | pIControl | source | ) | [static] |
static GUI callback method Buttons call this method first and then the instance method will be called
Definition at line 523 of file RenderListener.cpp.
void RenderListener::guiInstanceCallback | ( | pIControl | source | ) |
Callback method for GUI buttons.
Definition at line 501 of file RenderListener.cpp.
static void RenderListener::setInstance | ( | RenderListener * | instance | ) | [inline, static] |
sets a reference to the only instance of this class the guiCallback method needs this to correctly call the instance methods
Definition at line 35 of file RenderListener.h.