22 #ifndef DGDS_GLOBALS_H 23 #define DGDS_GLOBALS_H 25 #include "common/types.h" 26 #include "common/array.h" 28 #include "dgds/dgds.h" 46 Global(uint16 num) : _num(num) {}
48 virtual int16
get() = 0;
49 virtual int16
set(int16 val) = 0;
50 virtual uint16 getNum()
const {
return _num; }
51 virtual void setRaw(int16 val) = 0;
63 int16
get()
override {
return *_val; }
64 int16
set(int16 val)
override {
return *_val; }
65 void setRaw(int16 val)
override { *_val = val; }
73 int16
get()
override {
return *_val; }
74 int16
set(int16 val)
override { *_val = val;
return *_val; }
75 void setRaw(int16 val)
override { *_val = val; }
86 int16 getGlobal(uint16 num);
87 int16 setGlobal(uint16 num, int16 val);
92 int16 getGameMinsToAddOnLClick()
const {
return _gameMinsToAddOnLClick; }
93 int16 getGameMinsToAddOnStartDrag()
const {
return _gameMinsToAddOnStartDrag; }
94 int16 getGameMinsToAddOnRClick()
const {
return _gameMinsToAddOnRClick; }
95 int16 getGameMinsToAddOnDragFinished()
const {
return _gameMinsToAddOnDragFinished; }
96 int16 getGameMinsToAddOnObjInteraction()
const {
return _gameMinsToAddOnObjInteraction; }
98 void setLastSceneNum(int16 num) { _lastOpcode1SceneChageNum = num; }
103 int16 _lastOpcode1SceneChageNum;
104 int16 _sceneOp12SceneNum;
105 int16 _currentSelectedItem;
106 int16 _gameMinsToAddOnLClick;
107 int16 _gameMinsToAddOnStartDrag;
108 int16 _gameMinsToAddOnRClick;
109 int16 _gameMinsToAddOnDragFinished;
110 int16 _gameMinsToAddOnObjInteraction;
111 int16 _gameIsInteractiveGlobal;
112 int16 _sceneOpcode15FromScene;
113 int16 _sceneOpcode15ToScene;
122 uint16 getValueFromTable();
130 int getOffsetForVal(uint16 val)
const;
140 int16 _sceneOpcode100Var;
141 int16 _arcadeModeState;
142 int16 _opcode106EndMinutes;
152 int16 getSheckels()
const {
return _sheckels; }
154 int16 getShellBet()
const {
return _shellBet; }
155 void setShellBet(int16 bet) { _shellBet = bet; }
157 int16 getShellPea()
const {
return _shellPea; }
158 void setShellPea(int16 pea) { _shellPea = pea; }
160 int16 getNativeGameState()
const {
return _nativeGameState; }
161 void setNativeGameState(int16 state) { _nativeGameState = state; }
175 int16 _nativeGameState;
177 int16 _currentCharacter;
178 int16 _currentCharacter2;
180 int16 _unkDlgFileNum;
211 #endif // DGDS_GLOBALS_H Definition: globals.h:119
Definition: globals.h:187
Definition: serializer.h:79
Definition: globals.h:134
Definition: globals.h:148