summaryrefslogtreecommitdiff
path: root/src/worldmap.h
blob: 0cf567e4df91ce8c071e7380650cead0edae3440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Newer Super Mario Bros. Wii
 * World Maps
 *
 * Wish me luck. That's all I'm saying. --Treeki
 * Started: 03/06/2010; 11:52pm
 */

// TODO: add Save Error state

//#define WM_DEBUGGING

#include <common.h>
#include <game.h>

#include "layoutlib.h"
#include "fileload.h"
#include "levelinfo.h"

#ifdef WM_DEBUGGING
#define MapReport OSReport
#else
inline void MapReport(const char *str, ...) { }
#endif

void NewerMapDrawFunc();


// WORLD MAP CLASS LAYOUT
class dScNewerWorldMap_c : public dScene_c {
public:
	Layout *layout;
	int currentPage;
	int *selections;
	int state;
	void *csMenu;
	void *selectCursor;
	void *numPeopleChange;
	void *yesNoWindow;
	void *continueObj;
	void *stockItem;
	void *stockItemShadow;
	void *easyPairing;

	void *levelInfo;
	FileHandle levelInfoFH;

	void StartLevel(LevelInfo_Entry *entry);

	void StartLevel();
	void GenText();
	void GenSBTitle();
	void SetTitle(const char *text);

	int onCreate();
	int onDelete();
	int onExecute();
	int onDraw();

	static dScNewerWorldMap_c *build();
	static dScNewerWorldMap_c *instance;
};