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 getGameMinsToAddOnUse()
const {
return _gameMinsToAddOnUse; }
93 int16 getGameMinsToAddOnPickUp()
const {
return _gameMinsToAddOnPickUp; }
94 int16 getGameMinsToAddOnLook()
const {
return _gameMinsToAddOnLook; }
95 int16 getGameMinsToAddOnDrop()
const {
return _gameMinsToAddOnDrop; }
96 int16 getGameMinsToAddOnObjInteraction()
const {
return _gameMinsToAddOnObjInteraction; }
97 int16 getGameIsInteractiveGlobal() {
return _gameIsInteractiveGlobal; }
99 void setLastSceneNum(int16 num) { _lastOpcode1SceneChangeNum = num; }
100 int16 getLastSceneNum()
const {
return _lastOpcode1SceneChangeNum; }
105 int16 _lastOpcode1SceneChangeNum;
106 int16 _sceneOp12SceneNum;
107 int16 _currentSelectedItem;
108 int16 _gameMinsToAddOnUse;
109 int16 _gameMinsToAddOnPickUp;
110 int16 _gameMinsToAddOnLook;
111 int16 _gameMinsToAddOnDrop;
112 int16 _gameMinsToAddOnObjInteraction;
113 int16 _gameIsInteractiveGlobal;
114 int16 _sceneOpcode15FromScene;
115 int16 _sceneOpcode15ToScene;
124 uint16 getValueFromTable();
132 int getOffsetForVal(uint16 val)
const;
140 int16 getArcadeState()
const {
return _arcadeState; }
141 void setArcadeState(int16 state) { _arcadeState = state; }
145 int16 _sceneOpcode100Var;
147 int16 _opcode106EndMinutes;
157 int16 getSheckels()
const {
return _sheckels; }
159 int16 getShellBet()
const {
return _shellBet; }
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 getTrainState()
const {
return _trainState; }
168 void setTrainState(int16 state) { _trainState = state; }
170 int16 getIntroState()
const {
return _introState; }
171 void setIntroState(int16 state) { _introState = state; }
185 int16 _nativeGameState;
187 int16 _currentCharacter;
188 int16 _currentCharacter2;
189 int16 _partnerDlgDlgNum;
190 int16 _partnerDlgFileNum;
200 void setPalFade(int16 val) { _palFade = val; }
201 int16 getPalFade()
const {
return _palFade; }
203 void setDroppedItemNum(int16 val) { _droppedItemNum = val; }
204 bool isHideMouseCursor()
const {
return _hideMouseCursor != 0; }
205 bool isDrawTimeSkipButtons()
const {
return _invDrawTimeSkipButtons != 0; }
211 int16 _invDrawTimeSkipButtons;
212 int16 _hideMouseCursor;
216 int16 _droppedItemNum;
217 int16 _characterStance;
227 #endif // DGDS_GLOBALS_H Definition: globals.h:121
Definition: globals.h:196
Definition: serializer.h:79
Definition: globals.h:136
Definition: globals.h:153