22 #ifndef BLADERUNNER_DEBUGGER_H 23 #define BLADERUNNER_DEBUGGER_H 25 #include "bladerunner/bladerunner.h" 27 #include "bladerunner/vector.h" 29 #include "gui/debugger.h" 37 class BladeRunnerEngine;
40 enum DebuggerDrawnObjectType {
41 debuggerObjTypeUndefined = 99,
42 debuggerObjTypeActor = 0,
43 debuggerObjType3dObject = 1,
44 debuggerObjTypeItem = 2,
45 debuggerObjTypeRegionNormal = 3,
46 debuggerObjTypeRegionExit = 4,
47 debuggerObjTypeWaypointNorm = 5,
48 debuggerObjTypeWaypoingFlee = 6,
49 debuggerObjTypeWaypointCover = 7,
50 debuggerObjTypeWalkbox = 8,
51 debuggerObjTypeEffect = 9,
52 debuggerObjTypeLight = 10,
53 debuggerObjTypeFog = 11
59 static const uint kMaxSpecificObjectsDrawnCount = 100;
61 struct DebuggerDrawnObject {
65 DebuggerDrawnObjectType type;
67 DebuggerDrawnObject() : sceneId(0), setId(0), objId(0), type(debuggerObjTypeUndefined) {};
70 struct DebuggerPendingOuttake {
77 DebuggerPendingOuttake() : pending(
false), outtakeId(-1), notLocalized(
true), container(-1), externalFilename(
"") {};
81 bool _isDebuggerOverlay;
83 bool _viewActorsToggle;
84 bool _view3dObjectsToggle;
85 bool _viewItemsToggle;
88 bool _viewScreenEffects;
90 bool _viewRegionsNormalToggle;
91 bool _viewRegionsExitsToggle;
93 bool _viewWaypointsNormalToggle;
94 bool _viewWaypointsFleeToggle;
95 bool _viewWaypointsCoverToggle;
101 bool _showMouseClickInfo;
102 bool _useBetaCrosshairsCursor;
103 bool _useAdditiveDrawModeForMouseCursorMode0;
104 bool _useAdditiveDrawModeForMouseCursorMode1;
105 DebuggerPendingOuttake _dbgPendingOuttake;
110 bool cmdAnimation(
int argc,
const char **argv);
111 bool cmdHealth(
int argc,
const char **argv);
113 bool cmdDraw(
int argc,
const char **argv);
114 bool cmdFlag(
int argc,
const char **argv);
115 bool cmdGoal(
int argc,
const char **argv);
116 bool cmdLoop(
int argc,
const char **argv);
117 bool cmdPosition(
int argc,
const char **argv);
118 bool cmdMusic(
int argc,
const char** argv);
119 bool cmdSoundFX(
int argc,
const char** argv);
120 bool cmdSay(
int argc,
const char **argv);
121 bool cmdScene(
int argc,
const char **argv);
122 bool cmdVariable(
int argc,
const char **argv);
123 bool cmdClue(
int argc,
const char **argv);
124 bool cmdTimer(
int argc,
const char **argv);
125 bool cmdFriend(
int argc,
const char **argv);
126 bool cmdLoad(
int argc,
const char **argv);
127 bool cmdSave(
int argc,
const char **argv);
128 bool cmdOverlay(
int argc,
const char **argv);
129 bool cmdSubtitle(
int argc,
const char **argv);
130 bool cmdMazeScore(
int argc,
const char **argv);
131 bool cmdObject(
int argc,
const char **argv);
132 bool cmdItem(
int argc,
const char **argv);
133 bool cmdRegion(
int argc,
const char **argv);
134 bool cmdMouse(
int argc,
const char **argv);
135 bool cmdDifficulty(
int argc,
const char **argv);
136 bool cmdOuttake(
int argc,
const char** argv);
137 bool cmdPlayVqa(
int argc,
const char** argv);
138 bool cmdAmmo(
int argc,
const char** argv);
139 #if BLADERUNNER_ORIGINAL_BUGS 141 bool cmdEffect(
int argc,
const char **argv);
142 #endif // BLADERUNNER_ORIGINAL_BUGS 143 bool cmdList(
int argc,
const char **argv);
144 bool cmdVk(
int argc,
const char **argv);
148 void drawDebuggerOverlay();
151 void drawSceneObjects();
155 void drawWaypoints();
156 void drawWalkboxes();
157 void drawScreenEffects();
159 bool dbgAttemptToLoadChapterSetScene(
int chapterId,
int setId,
int sceneId);
160 void resetPendingOuttake();
164 bool _specificActorsDrawn;
165 bool _specific3dObjectsDrawn;
166 bool _specificItemsDrawn;
167 bool _specificEffectsDrawn;
168 bool _specificLightsDrawn;
169 bool _specificFogsDrawn;
170 bool _specificRegionNormalDrawn;
171 bool _specificRegionExitsDrawn;
172 bool _specificWaypointNormalDrawn;
173 bool _specificWaypointFleeDrawn;
174 bool _specificWaypointCoverDrawn;
175 bool _specificWalkboxesDrawn;
177 void toggleObjectInDbgDrawList(DebuggerDrawnObject &drObj);
178 int findInDbgDrawList(DebuggerDrawnObjectType objType,
int objId,
int setId,
int sceneId);
179 void updateTogglesForDbgDrawListInCurrentSetAndScene();
Definition: debugger.h:41
Definition: formatinfo.h:28
Definition: debugger.h:56
Definition: bladerunner.h:113