Antkeeper  0.0.1
Public Member Functions | Protected Attributes | List of all members
game_state Class Referenceabstract

Abstract base class for game states. More...

#include <game-state.hpp>

Inheritance diagram for game_state:
collection_menu_state controls_menu_state credits_state extras_menu_state gamepad_config_menu_state graphics_menu_state keyboard_config_menu_state language_menu_state main_menu_state nest_selection_state nest_view_state nuptial_flight_state options_menu_state pause_menu_state sound_menu_state splash_state treadmill_experiment_state

Public Member Functions

 game_state (::game &ctx)
 Constructs a game state. More...
 
virtual ~game_state ()=0
 Destructs a game state. More...
 

Protected Attributes

::gamectx
 

Detailed Description

Abstract base class for game states.

Definition at line 28 of file game-state.hpp.

Constructor & Destructor Documentation

◆ game_state()

game_state::game_state ( ::game ctx)
explicit

Constructs a game state.

Parameters
ctxReference to the game context on which this state will operate.

Definition at line 22 of file game-state.cpp.

◆ ~game_state()

game_state::~game_state ( )
pure virtual

Destructs a game state.

Definition at line 26 of file game-state.cpp.

Member Data Documentation

◆ ctx

::game& game_state::ctx
protected

Definition at line 44 of file game-state.hpp.


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