Fission FSN
Loading...
Searching...
No Matches
gfCSimpleMapRules.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCSimpleMapRules.h
4*
5* Purpose: The simple map's progression rules, read from the map level's settings: which
6* states are open (startState, neighbours_<State>) and the player's chosen home
7* state when startState is "choose".
8*
9*********************************************************************/
10
11#ifndef gfCSimpleMapRuleshdr
12#define gfCSimpleMapRuleshdr
13
14#include <fsCore/fsStr.h>
15
17{
18public:
19
20 // Map rule: the level.txt startState is always open; otherwise a level opens when it, or a state
21 // listed in its neighbours_<State> entry, has completed a step. Everything is open when startState is not set.
22 static fsBool levelUnlockedGet(const fsStr& pLevel);
23
24 // The level file's startState may be "choose": each player picks a home state once, kept in their profile.
25 static fsStr homeStateGet();
26 static void homeStateSet(const fsStr& pState);
28 // The state the player last tapped while choosing, which the confirm box is asking about.
30 static void homeStateCandidateSet(const fsStr& pState);
31};
32
33#endif
Definition fsStr.h:23
Definition gfCSimpleMapRules.h:17
static fsBool levelUnlockedGet(const fsStr &pLevel)
Definition gfCSimpleMapRules.cpp:48
static fsStr homeStateCandidateGet()
Definition gfCSimpleMapRules.cpp:38
static fsStr homeStateGet()
Definition gfCSimpleMapRules.cpp:14
static void homeStateSet(const fsStr &pState)
Definition gfCSimpleMapRules.cpp:19
static fsBool homeStatePendingGet()
Definition gfCSimpleMapRules.cpp:24
static void homeStateCandidateSet(const fsStr &pState)
Definition gfCSimpleMapRules.cpp:43
bool fsBool
Definition fsBaseTypes.h:26