Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | Public Attributes | List of all members
core::event::StateChange Struct Reference

Fired when the game should switch states. This event type is primarily for decoupling input code in Core from state code in Game. More...

#include <StateChange.hpp>

Public Types

enum  Type { GamePaused = 0 }
 The type of state change that should occur. More...
 

Public Member Functions

 StateChange (Type t)
 Construct a new State Change event. More...
 

Public Attributes

const Type type
 The type of state change that should occur. More...
 

Detailed Description

Fired when the game should switch states. This event type is primarily for decoupling input code in Core from state code in Game.

Definition at line 15 of file StateChange.hpp.

Member Enumeration Documentation

◆ Type

The type of state change that should occur.

Enumerator
GamePaused 

The game should pause.

Definition at line 17 of file StateChange.hpp.

Constructor & Destructor Documentation

◆ StateChange()

core::event::StateChange::StateChange ( Type  t)
inline

Construct a new State Change event.

Parameters
tThe type of state change

Definition at line 30 of file StateChange.hpp.

Member Data Documentation

◆ type

const Type core::event::StateChange::type

The type of state change that should occur.

Definition at line 23 of file StateChange.hpp.


The documentation for this struct was generated from the following file: