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 bool cmdCheatReport(
int argc,
const char** argv);
140 #if BLADERUNNER_ORIGINAL_BUGS 142 bool cmdEffect(
int argc,
const char **argv);
143 #endif // BLADERUNNER_ORIGINAL_BUGS 144 bool cmdList(
int argc,
const char **argv);
145 bool cmdVk(
int argc,
const char **argv);
149 void drawDebuggerOverlay();
152 void drawSceneObjects();
156 void drawWaypoints();
157 void drawWalkboxes();
158 void drawScreenEffects();
160 bool dbgAttemptToLoadChapterSetScene(
int chapterId,
int setId,
int sceneId);
161 void resetPendingOuttake();
165 bool _specificActorsDrawn;
166 bool _specific3dObjectsDrawn;
167 bool _specificItemsDrawn;
168 bool _specificEffectsDrawn;
169 bool _specificLightsDrawn;
170 bool _specificFogsDrawn;
171 bool _specificRegionNormalDrawn;
172 bool _specificRegionExitsDrawn;
173 bool _specificWaypointNormalDrawn;
174 bool _specificWaypointFleeDrawn;
175 bool _specificWaypointCoverDrawn;
176 bool _specificWalkboxesDrawn;
178 void toggleObjectInDbgDrawList(DebuggerDrawnObject &drObj);
179 int findInDbgDrawList(DebuggerDrawnObjectType objType,
int objId,
int setId,
int sceneId);
180 void updateTogglesForDbgDrawListInCurrentSetAndScene();
Definition: debugger.h:41
Definition: formatinfo.h:28
Definition: debugger.h:56
Definition: bladerunner.h:113