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; }
97 int16 getGameIsInteractiveGlobal() {
return _gameIsInteractiveGlobal; }
99 void setLastSceneNum(int16 num) { _lastOpcode1SceneChageNum = num; }
104 int16 _lastOpcode1SceneChageNum;
105 int16 _sceneOp12SceneNum;
106 int16 _currentSelectedItem;
107 int16 _gameMinsToAddOnLClick;
108 int16 _gameMinsToAddOnStartDrag;
109 int16 _gameMinsToAddOnRClick;
110 int16 _gameMinsToAddOnDragFinished;
111 int16 _gameMinsToAddOnObjInteraction;
112 int16 _gameIsInteractiveGlobal;
113 int16 _sceneOpcode15FromScene;
114 int16 _sceneOpcode15ToScene;
123 uint16 getValueFromTable();
131 int getOffsetForVal(uint16 val)
const;
139 int16 getArcadeState()
const {
return _arcadeState; }
140 void setArcadeState(int16 state) { _arcadeState = state; }
144 int16 _sceneOpcode100Var;
146 int16 _opcode106EndMinutes;
156 int16 getSheckels()
const {
return _sheckels; }
158 int16 getShellBet()
const {
return _shellBet; }
159 void setShellBet(int16 bet) { _shellBet = bet; }
161 int16 getShellPea()
const {
return _shellPea; }
162 void setShellPea(int16 pea) { _shellPea = pea; }
164 int16 getNativeGameState()
const {
return _nativeGameState; }
165 void setNativeGameState(int16 state) { _nativeGameState = state; }
167 int16 getIntroState()
const {
return _introState; }
168 void setIntroState(int16 state) { _introState = state; }
182 int16 _nativeGameState;
184 int16 _currentCharacter;
185 int16 _currentCharacter2;
187 int16 _unkDlgFileNum;
189 int16 _difficultyLevel;
198 void setPalFade(int16 val) { _palFade = val; }
199 int16 getPalFade()
const {
return _palFade; }
201 void setDroppedItemNum(int16 val) { _droppedItemNum = val; }
202 bool isHideMouseCursor()
const {
return _hideMouseCursor != 0; }
203 bool isDrawTimeSkipButtons()
const {
return _invDrawTimeSkipButtons != 0; }
209 int16 _invDrawTimeSkipButtons;
210 int16 _hideMouseCursor;
214 int16 _droppedItemNum;
225 #endif // DGDS_GLOBALS_H Definition: globals.h:120
Definition: globals.h:194
Definition: serializer.h:79
Definition: globals.h:135
Definition: globals.h:152