-
Notifications
You must be signed in to change notification settings - Fork 2
/
nerpdef.h
116 lines (101 loc) · 3.04 KB
/
nerpdef.h
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// nerpdef.h
//
// Lego RR NERPS function call macros
//
// Copyright (C) 2009-2010 Johan Grip
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
//
// Objectives and tutorial
//
#define _SetTutorialFlags(x) SetTutorialFlags x
#define _GetObjectiveSwitch() GetObjectiveSwitch
#define _GetObjectiveShowing() GetObjectiveShowing
#define _SetLevelCompleted() SetLevelCompleted
//
// Monsters
//
#define _GetSlugsOnLevel() GetSlugsOnLevel
#define _GenerateSlug() GenerateSlug
//
// Data gathering
//
#define _GetCrystalsCurrentlyStored() GetCrystalsCurrentlyStored
#define _GetToolStoresBuilt() GetToolStoresBuilt
#define _GetMiniFiguresOnLevel() GetMiniFiguresOnLevel
#define _GetOxygenLevel() GetOxygenLevel
#define _GetUnitAtBlock(x) GetUnitAtBlock x
#define _GetRecordObjectAtTutorial(x) GetRecordObjectAtTutorial x
#define _GetTutorialBlockIsGround(x) GetTutorialBlockIsGround x
#define _GetRandom100() GetRandom100
//
// On-screen message handling
//
#define _SetMessagePermit(x) SetMessagePermit x
#define _SetMessage(x,y) SetMessage x y
#define _GetMessageTimer(x) GetMessageTimer x
#define _SetMessageTimerValues(x,y,z) SetMessageTimerValues x y z
//
// Camera functions
//
#define _SetCameraGotoTutorial(x) SetCameraGotoTutorial x
#define _CameraUnlock() CameraUnlock
//
// Register manipulations
//
#define _SetR0(x) SetR0 x
#define _SetR1(x) SetR1 x
#define _SetR2(x) SetR2 x
#define _SetR3(x) SetR3 x
#define _SetR4(x) SetR4 x
#define _SetR5(x) SetR5 x
#define _SetR6(x) SetR6 x
#define _SetR7(x) SetR7 x
#define _GetR0(x) GetR0 x
#define _GetR1(x) GetR1 x
#define _GetR2(x) GetR2 x
#define _GetR3(x) GetR3 x
#define _GetR4(x) GetR4 x
#define _GetR5(x) GetR5 x
#define _GetR6(x) GetR6 x
#define _GetR7(x) GetR7 x
#define _AddR0(x) AddR0 x
#define _AddR1(x) AddR1 x
#define _AddR2(x) AddR2 x
#define _AddR3(x) AddR3 x
#define _AddR4(x) AddR4 x
#define _AddR5(x) AddR5 x
#define _AddR6(x) AddR6 x
#define _AddR7(x) AddR7 x
#define _SubR0(x) SubR0 x
#define _SubR1(x) SubR1 x
#define _SubR2(x) SubR2 x
#define _SubR3(x) SubR3 x
#define _SubR4(x) SubR4 x
#define _SubR5(x) SubR5 x
#define _SubR6(x) SubR6 x
#define _SubR7(x) SubR7 x
//
// Timers
//
#define _SetTimer0(x) SetTimer0 x
#define _SetTimer1(x) SetTimer1 x
#define _SetTimer2(x) SetTimer2 x
#define _SetTimer3(x) SetTimer3 x
#define _GetTimer0(x) GetTimer0 x
#define _GetTimer1(x) GetTimer1 x
#define _GetTimer2(x) GetTimer2 x
#define _GetTimer3(x) GetTimer3 x