Fission FSN
Loading...
Searching...
No Matches
gfCHogMapProgress.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCHogMapProgress.h
4*
5* Purpose: What the map knows about each level, for any game with a map: the level a map
6* state stands for, its completion rank and HOG bonus counts, and starting a level
7* from the map. Finished/step progress itself is gfCHogLevelProgress; the simple
8* map's unlock and home-state rules are gfCSimpleMapRules.
9*
10*********************************************************************/
11
12#ifndef gfCHogMapProgresshdr
13#define gfCHogMapProgresshdr
14
15#include <fsCore/fsStr.h>
16
17
19{
20public:
21
22 // The level a map state stands for: <mapSceneRoot><State>/<State>.txt. The mapSceneRoot setting
23 // (default "scenes/") is the folder holding the scenes the map tracks; a game that keeps them in a
24 // collection subfolder (e.g. "scenes/nature/") sets it.
25 static fsStr mapLevelPath(const fsStr& pState);
26
27 static void nextLevelStart(const fsStr& pNextLevel);
28
29 static fsStr levelCompletionRankGet(const fsStr& pLevel);
30
31 static void bonusBonusTotalGet(const fsStr& pLevel, fsS32& pBonusBonusTotal);
32
33 static void trashTotalGet(const fsStr& pLevel, fsS32& pTrashCount, fsS32& pTrashTotal,
34 fsS32& pLostFoundCount, fsS32& pLostFoundTotal);
35
36private:
37
38 static void nextMapLocationClear(const fsStr& pTargetLevel);
39};
40
41#endif
Definition fsStr.h:23
Definition gfCHogMapProgress.h:19
static fsStr levelCompletionRankGet(const fsStr &pLevel)
Definition gfCHogMapProgress.cpp:42
static void bonusBonusTotalGet(const fsStr &pLevel, fsS32 &pBonusBonusTotal)
Definition gfCHogMapProgress.cpp:82
static void trashTotalGet(const fsStr &pLevel, fsS32 &pTrashCount, fsS32 &pTrashTotal, fsS32 &pLostFoundCount, fsS32 &pLostFoundTotal)
Definition gfCHogMapProgress.cpp:99
static fsStr mapLevelPath(const fsStr &pState)
Definition gfCHogMapProgress.cpp:17
static void nextLevelStart(const fsStr &pNextLevel)
Definition gfCHogMapProgress.cpp:35
int fsS32
Definition fsBaseTypes.h:20