22 #ifndef BBVS_GAMEMODULE_H 23 #define BBVS_GAMEMODULE_H 25 #include "common/array.h" 26 #include "common/file.h" 27 #include "common/memstream.h" 28 #include "common/rect.h" 29 #include "common/str.h" 33 const int kInventoryItemCount = 42;
34 const int kInventoryItemSpriteCount = 2 * kInventoryItemCount;
35 const int kDialogItemSpriteCount = 26;
36 const int kGuiSpriteCount = 21;
37 const int kCameraInitsCount = 4;
61 int16 sceneObjectIndex;
107 int *frameSpriteIndices;
112 : frameCount(0), frameSpriteIndices(0), frameTicks(0), frameRects1(0), frameRects2(0) {
115 delete[] frameSpriteIndices;
117 delete[] frameRects1;
118 delete[] frameRects2;
140 int getButtheadObjectIndex();
142 int getGuiSpriteIndex(
int index);
143 int getInventoryItemSpriteIndex(
int index);
144 int getDialogItemSpriteIndex(
int index);
146 int getActionsCount();
147 Action *getAction(
int index);
153 int getSceneExitsCount();
156 int getWalkRectsCount();
159 int getSceneObjectDefsCount();
162 int getSceneObjectInitsCount();
165 int getBgObjectsCount();
168 int getBgSpritesCount();
169 int getBgSpriteIndex(
int index);
170 int getBgSpritePriority(
int index);
172 int getSceneSoundsCount();
174 uint getSceneSoundIndex(uint soundNum);
176 uint getPreloadSoundsCount();
177 uint getPreloadSound(uint index);
184 int *_bgSpriteIndices;
185 int16 *_bgSpritePriorities;
192 int _sceneExitsCount;
198 int _animationsCount;
201 int _sceneObjectDefsCount;
204 int _sceneObjectInitsCount;
210 int _sceneSoundsCount;
213 uint _preloadSoundsCount;
214 uint *_preloadSounds;
216 int _guiSpriteIndices[kGuiSpriteCount];
217 int _inventoryItemSpriteIndices[kInventoryItemSpriteCount];
219 int _dialogItemSpriteIndices[kDialogItemSpriteCount];
222 int _buttheadObjectIndex;
250 #endif // BBVS_GAMEMODULE_H Definition: gamemodule.h:100
Definition: gamemodule.h:127
Definition: gamemodule.h:55
Definition: gamemodule.h:39
Definition: gamemodule.h:70
Definition: gamemodule.h:67
Definition: gamemodule.h:49
Definition: gamemodule.h:81
Definition: gamemodule.h:122
Definition: gamemodule.h:105
Definition: gamemodule.h:87
Definition: gamemodule.h:93
Definition: gamemodule.h:76
Definition: gamemodule.h:45
Definition: gamemodule.h:132
Definition: gamemodule.h:59