zenilib
0.5.3.0
|
A smartpointer for a Gamestate_Base. More...
#include <Gamestate.h>
Public Member Functions | |
Gamestate () | |
Gamestate (Gamestate_Base *const &state) | |
Gamestate (const Gamestate &state) | |
~Gamestate () | |
Gamestate_Base & | get () |
const bool & | is_pausable () const |
void | on_cover () |
void | on_event (const SDL_Event &event) |
void | on_pop () |
void | on_push () |
void | on_uncover () |
Gamestate & | operator= (const Gamestate &state) |
void | perform_logic () |
void | prerender () |
void | render () |
A smartpointer for a Gamestate_Base.
A Gamestate also allows one to call the same functions provided by Gamestate_Base indirectly. Any functions provided by derivations of Gamestate_Base will, of course, require you to get the internal pointer and dynamic cast it to the correct type. (Or static cast if you're absolutely sure...)
Contact: bazal d@ze nipex .com
Definition at line 169 of file Gamestate.h.
|
inline |
Definition at line 42 of file Gamestate.hxx.
|
inline |
Definition at line 47 of file Gamestate.hxx.
References assert.
Zeni::Gamestate::~Gamestate | ( | ) |
Definition at line 1113 of file Gamestate.cpp.
Definition at line 56 of file Gamestate.hxx.
|
inline |
Definition at line 117 of file Gamestate.hxx.
|
inline |
Definition at line 113 of file Gamestate.hxx.
References Zeni::Gamestate_Base::is_pausable().
|
inline |
Definition at line 101 of file Gamestate.hxx.
References Zeni::Gamestate_Base::on_cover().
Definition at line 80 of file Gamestate.hxx.
References Zeni::Gamestate_Base::on_event().
Referenced by Zeni::Game::on_event(), and Zeni::Popup_State::on_key().
|
inline |
Definition at line 109 of file Gamestate.hxx.
References Zeni::Gamestate_Base::on_pop().
Referenced by Zeni::Game::pop_state().
|
inline |
Definition at line 97 of file Gamestate.hxx.
References Zeni::Gamestate_Base::on_push().
|
inline |
Definition at line 105 of file Gamestate.hxx.
References Zeni::Gamestate_Base::on_uncover().
Definition at line 63 of file Gamestate.hxx.
|
inline |
Definition at line 85 of file Gamestate.hxx.
References Zeni::Gamestate_Base::perform_logic().
Referenced by Zeni::Game::perform_logic().
|
inline |
Definition at line 89 of file Gamestate.hxx.
References Zeni::Gamestate_Base::prerender().
Referenced by Zeni::Game::prerender().
|
inline |
Definition at line 93 of file Gamestate.hxx.
References Zeni::Gamestate_Base::render().
Referenced by Zeni::Game::render().