aboutsummaryrefslogtreecommitdiff
path: root/sword2/sword2.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-02-22 07:37:50 +0000
committerTorbjörn Andersson2005-02-22 07:37:50 +0000
commit9bb141481822a6f1deef4c152e6bbb87d4136a10 (patch)
tree763a23067c5a40043cc1911fc4f643b2d95e9c36 /sword2/sword2.h
parenta45a0de6581ae7859ff20da58c01bacac8bc612c (diff)
downloadscummvm-rg350-9bb141481822a6f1deef4c152e6bbb87d4136a10.tar.gz
scummvm-rg350-9bb141481822a6f1deef4c152e6bbb87d4136a10.tar.bz2
scummvm-rg350-9bb141481822a6f1deef4c152e6bbb87d4136a10.zip
Moved some debugging stuff into the debugger class.
svn-id: r16859
Diffstat (limited to 'sword2/sword2.h')
-rw-r--r--sword2/sword2.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/sword2/sword2.h b/sword2/sword2.h
index 8a30dad63e..23a0d25342 100644
--- a/sword2/sword2.h
+++ b/sword2/sword2.h
@@ -85,6 +85,17 @@ struct KeyboardEvent {
int modifiers;
};
+struct StartUp {
+ char description[MAX_description];
+
+ // id of screen manager object
+ uint32 start_res_id;
+
+ // Tell the manager which startup you want (if there are more than 1)
+ // (i.e more than 1 entrance to a screen and/or separate game boots)
+ uint32 key;
+};
+
class Sword2Engine : public Engine {
private:
uint32 _eventFilter;
@@ -113,18 +124,6 @@ private:
bool _useSubtitles;
- struct StartUp {
- char description[MAX_description];
-
- // id of screen manager object
- uint32 start_res_id;
-
- // tell the manager which startup you want (if there are more
- // than 1) (i.e more than 1 entrance to a screen and/or
- // separate game boots)
- uint32 key;
- };
-
StartUp _startList[MAX_starts];
public:
@@ -256,8 +255,12 @@ public:
bool initStartMenu();
void registerStartPoint(int32 key, char *name);
- void conPrintStartMenu();
- void conStart(int start);
+
+ uint32 getNumStarts() { return _totalStartups; }
+ uint32 getNumScreenManagers() { return _totalScreenManagers; }
+ StartUp *getStartList() { return _startList; }
+
+ void runStart(int start);
// Convenience alias for OSystem::getMillis().
// This is a bit hackish, of course :-).