50 #include "engines/engine.h" 51 #include "audio/mixer.h" 52 #include "common/debug.h" 53 #include "common/endian.h" 54 #include "common/rect.h" 56 #include "common/random.h" 57 #include "common/timer.h" 59 #include "wage/debugger.h" 87 #define STORAGESCENE "STORAGE@" 109 kWageDebugExample = 1 << 0,
110 kWageDebugExample2 = 1 << 1
122 const char *prependGenderSpecificPronoun(
int gender);
123 const char *getGenderSpecificPronoun(
int gender,
bool capitalize);
139 const char *getGameFile()
const;
143 const char *getTargetName() {
return _targetName.c_str(); }
148 void performInitialSetup();
149 void wearObjs(
Chr *chr);
151 void performCombatAction(
Chr *npc,
Chr *player);
152 int getValidMoveDirections(
Chr *npc);
153 void performAttack(
Chr *attacker,
Chr *victim,
Obj *weapon);
154 void performMagic(
Chr *attacker,
Chr *victim,
Obj *magicalObject);
155 void performMove(
Chr *chr,
int validMoves);
156 void performOffer(
Chr *attacker,
Chr *victim);
157 void performTake(
Chr *npc,
Obj *obj);
158 void decrementUses(
Obj *obj);
159 bool attackHit(
Chr *attacker,
Chr *victim,
Obj *weapon,
int targetIndex);
160 void performHealingMagic(
Chr *chr,
Obj *magicalObject);
165 void takeObj(
Obj *obj);
167 bool handleMoveCommand(Directions dir,
const char *dirName);
168 bool handleLookCommand();
171 bool handleInventoryCommand();
172 bool handleStatusCommand();
173 bool handleRestCommand();
174 bool handleAcceptCommand();
176 bool handleTakeCommand(
const char *target);
177 bool handleDropCommand(
const char *target);
178 bool handleAimCommand(
const char *target);
179 bool handleWearCommand(
const char *target);
180 bool handleOfferCommand(
const char *target);
182 void wearObj(
Obj *o,
int pos);
185 bool handleAttack(
Obj *weapon);
187 void printPlayerCondition(
Chr *player);
188 const char *getPercentMessage(
double percent);
204 bool _temporarilyHidden;
206 bool _commandWasQuick;
207 bool _restartRequested =
false;
210 int _defaultSaveSlot = -1;
219 void updateSoundTimerForScene(
Scene *scene,
bool firstTime);
221 void appendText(
const char *str);
227 void processEvents();
230 void encounter(
Chr *player,
Chr *chr);
234 uint32 getFeatures();
238 bool scummVMSaveLoadDialog(
bool isSave);
241 int getSceneIndex(
Scene *scene)
const;
242 Obj *getObjByOffset(
int offset,
int objBaseOffset)
const;
243 Chr *getChrById(
int resId)
const;
244 Chr *getChrByOffset(
int offset,
int chrBaseOffset)
const;
245 Scene *getSceneById(
int id)
const;
246 Scene *getSceneByOffset(
int offset)
const;
248 int loadGame(
int slotId);
Definition: macresman.h:125
EngineFeature
Definition: engine.h:253
Definition: advancedDetector.h:163
Definition: entities.h:231
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: entities.h:300
Definition: debugger.h:28
Definition: entities.h:130
Definition: entities.h:111