39 template <
typename PLAY_STATE,
typename INSTRUCTIONS_STATE>
65 "system_36_800x600",
"Play")
81 "system_36_800x600",
"Instructions")
Controllers & get_Controllers()
Get access to the singleton.
Colors & get_Colors()
Get access to the singleton.
virtual void set_clear_Color(const Color &color)=0
Set the blank background color.
Title(const String &title_)
Title_State(const String &title_)
Provide a simple title screen for games.
void reset_vibration_all()
Set vibration for all controllers to <0,0>
void give_BG_Renderer(Widget_Render_Function *const &renderer)
Set the current Widget_Render_Function, giving the Widget ownership.
Zeni::Title_State::Instructions_Button instructions_button
void set_mouse_state(const Mouse_State &mouse_state)
void on_uncover()
Called when a Gamestate is popped off Game, making this Gamestate on top.
Game & get_Game()
Get access to the singleton.
void on_key(const SDL_KeyboardEvent &)
Override this input callback in your Gamestates. See SDL documentation for details.
Zeni::Title_State::Title title
Keyboard button event structure (event.key.*)
void on_cover()
Called when a Gamestate is pushed on top of this Gamestate in Game.
struct Zeni::Game::Controller_Mouse controller_mouse
void set_justify(const JUSTIFY &justify_)
Popup_Menu_State::Quit_Button quit_button
void push_state(const Gamestate &state)
Push a new Gamestate onto the stack.
Popup_Menu_State::Configure_Video_Button configure_video_button
Window & get_Window()
Get access to the singleton.
void on_push()
Called when the Gamestate is pushed onto the stack in Game.
void perform_logic()
Then perform logic. Called by Game as part of the main gameloop.
Zeni::Title_State::Play_Button play_button
Video & get_Video()
Get access to the singleton.
Popup_Menu_State::Sound_Check_Box sound_check_box
A 2D Point represented with floats.