Loading [MathJax]/extensions/MathZoom.js
Cytopia
0.3
A city building simulation game
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
c
d
e
g
i
m
n
p
r
s
t
u
v
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Functions
b
c
d
f
g
i
m
o
p
r
s
t
w
Variables
a
c
d
g
h
i
l
m
n
r
s
t
Typedefs
a
c
d
e
f
g
i
j
l
m
n
r
s
t
v
Enumerations
Enumerator
a
b
d
e
f
g
l
m
n
p
r
s
t
u
w
z
Macros
_
c
e
i
l
n
r
s
t
v
Examples
▼
Cytopia
Todo List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
▼
engine
►
audio
▼
basics
Camera.cxx
►
Camera.hxx
►
compression.hxx
GameStates.cxx
►
GameStates.hxx
►
isoMath.cxx
►
isoMath.hxx
►
mapEdit.cxx
►
mapEdit.hxx
►
Point.hxx
►
PointFunctions.cxx
►
PointFunctions.hxx
Settings.cxx
►
Settings.hxx
►
tileData.hxx
►
utils.cxx
►
utils.hxx
►
common
►
GameObjects
►
map
EventManager.cxx
►
EventManager.hxx
►
Layout.hxx
►
Map.cxx
►
Map.hxx
►
MessageQueue.hxx
MessageQueue.inl.hxx
►
ResourcesManager.cxx
►
ResourcesManager.hxx
Sprite.cxx
►
Sprite.hxx
►
TileManager.cxx
►
TileManager.hxx
►
UIManager.cxx
►
UIManager.hxx
WindowManager.cxx
►
WindowManager.hxx
►
game
►
scripting
►
services
►
util
►
windows
Game.cxx
►
Game.hxx
►
main.cxx
►
MainMenu.cxx
►
MainMenu.hxx
phc.hxx
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
GameStates.hxx
Go to the documentation of this file.
1
#ifndef GAMESTATES_HXX_
2
#define GAMESTATES_HXX_
3
4
#include <string>
5
6
#include "../../util/Singleton.hxx"
7
#include "../common/enums.hxx"
8
12
struct
GameStatesData
13
{
14
bool
drawUI
=
true
;
15
bool
rectangularRoads
=
false
;
16
LayerEditMode
layerEditMode
=
17
LayerEditMode::TERRAIN
;
18
PlacementMode
placementMode
=
PlacementMode::LINE
;
19
DemolishMode
demolishMode
=
DemolishMode::DEFAULT
;
20
};
21
22
class
GameStates
:
public
GameStatesData
,
public
Singleton
<GameStates>
23
{
24
public
:
25
friend
Singleton<GameStates>
;
26
27
private
:
28
GameStates
() =
default
;
29
~GameStates
() =
default
;
30
};
31
32
#endif
PlacementMode
PlacementMode
Definition:
enums.hxx:51
GameStatesData::placementMode
PlacementMode placementMode
Specifies the placement mode when holding down the mouse.
Definition:
GameStates.hxx:18
GameStates::GameStates
GameStates()=default
GameStates
Definition:
GameStates.hxx:22
PlacementMode::LINE
@ LINE
Place tiles in a line from start to end point.
GameStatesData::rectangularRoads
bool rectangularRoads
place rectangular road tiles instead of diagonal tiles
Definition:
GameStates.hxx:15
GameStatesData::demolishMode
DemolishMode demolishMode
Definition:
GameStates.hxx:19
Singleton
Abstract Singleton implementation.
Definition:
Singleton.hxx:8
DemolishMode::DEFAULT
@ DEFAULT
Demolish everything, but not.
GameStatesData::layerEditMode
LayerEditMode layerEditMode
Specifies the Layer Editmode. Editing Terrain or Blueprint (water pipes, subway,.....
Definition:
GameStates.hxx:16
LayerEditMode
LayerEditMode
This enum is for switching between layers.
Definition:
enums.hxx:45
LayerEditMode::TERRAIN
@ TERRAIN
Default "overworld" edit mode.
DemolishMode
DemolishMode
Definition:
enums.hxx:59
GameStatesData
Data struct for GameStates class.
Definition:
GameStates.hxx:12
GameStatesData::drawUI
bool drawUI
Draw UI. This is a temporary variable until the new UI has been implemented.
Definition:
GameStates.hxx:14
GameStates::~GameStates
~GameStates()=default
src
engine
basics
GameStates.hxx
Generated on Sun Nov 27 2022 09:50:52 for Cytopia by
1.8.17