[Scummvm-cvs-logs] SF.net SVN: scummvm: [28560] scummvm/trunk/engines/parallaction
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sun Aug 12 15:10:05 CEST 2007
Revision: 28560
http://scummvm.svn.sourceforge.net/scummvm/?rev=28560&view=rev
Author: peres001
Date: 2007-08-12 06:10:04 -0700 (Sun, 12 Aug 2007)
Log Message:
-----------
Added simple game loop to BRA. The game still crashes after menu.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/parallaction.h
scummvm/trunk/engines/parallaction/parallaction_br.cpp
Modified: scummvm/trunk/engines/parallaction/parallaction.h
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.h 2007-08-12 13:06:42 UTC (rev 28559)
+++ scummvm/trunk/engines/parallaction/parallaction.h 2007-08-12 13:10:04 UTC (rev 28560)
@@ -584,6 +584,7 @@
Table *_audioCommandsNames;
const char **_audioCommandsNamesRes;
+ int _part;
int _progress;
private:
@@ -591,6 +592,9 @@
void initFonts();
void freeFonts();
+ void initPart();
+ void freePart();
+
void setMousePointer(int16 index);
void initCursors();
Modified: scummvm/trunk/engines/parallaction/parallaction_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_br.cpp 2007-08-12 13:06:42 UTC (rev 28559)
+++ scummvm/trunk/engines/parallaction/parallaction_br.cpp 2007-08-12 13:10:04 UTC (rev 28560)
@@ -66,6 +66,8 @@
initFonts();
initCursors();
+ _part = -1;
+
Parallaction::init();
return 0;
@@ -97,11 +99,35 @@
// TODO: load progress value from special save game
_progress = 3;
- // TODO: game loop :P
+ while ((_engineFlags & kEngineQuit) == 0) {
- int option = showMenu();
- printf("option = %i\n", option);
+// initCharacter();
+ int option = showMenu();
+ switch (option) {
+ case kMenuQuit:
+ _engineFlags |= kEngineQuit;
+ break;
+
+ case kMenuLoadGame:
+ warning("loadgame not yet implemented");
+ break;
+
+ default:
+ _part = option;
+ initPart();
+ break;
+ }
+
+
+ runGame();
+
+ freePart();
+// freeLocation();
+// freeCharacter();
+
+ }
+
return 0;
}
@@ -274,4 +300,15 @@
}
+void Parallaction_br::initPart() {
+
+
+}
+
+void Parallaction_br::freePart() {
+
+
+}
+
+
} // namespace Parallaction
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list