HUGO: Use DOS names for and exact names in endGame()

svn-id: r54131
This commit is contained in:
Arnaud Boutonné 2010-11-07 22:10:29 +00:00
parent 170b21c2ce
commit 74d0ad8371
3 changed files with 22 additions and 7 deletions

View File

@ -41,8 +41,8 @@ uint32 HugoEngine::getFeatures() const {
static const PlainGameDescriptor hugoGames[] = {
// Games
{"hugo1", "Hugo 1: Hugo's House of Horrors"},
{"hugo2", "Hugo 2: Hugo's Mystery Adventure"},
{"hugo3", "Hugo 3: Hugo's Amazon Adventure"},
{"hugo2", "Hugo 2: Whodunit?"},
{"hugo3", "Hugo 3: Jungle of Doom"},
{0, 0}
};

View File

@ -985,16 +985,28 @@ void HugoEngine::initialize() {
_rnd->setSeed(42); // Kick random number generator
switch (getGameType()) {
case kGameTypeHugo1:
_episode = "\"HUGO'S HOUSE OF HORRORS\"";
switch (_gameVariant) {
case kGameVariantH1Dos:
_episode = "\"Hugo's House of Horrors\"";
_picDir = "";
break;
case kGameTypeHugo2:
case kGameVariantH2Dos:
_episode = "\"Hugo 2: Whodunit?\"";
_picDir = "hugo2/";
break;
case kGameVariantH3Dos:
_episode = "\"Hugo III: Jungle of Doom\"";
_picDir = "hugo3/";
break;
case kGameVariantH1Win:
_episode = "\"Hugo's Horrific Adventure\"";
_picDir = "";
break;
case kGameVariantH2Win:
_episode = "\"Hugo's Mystery Adventure\"";
_picDir = "hugo2/";
break;
case kGameTypeHugo3:
case kGameVariantH3Win:
_episode = "\"Hugo's Amazon Adventure\"";
_picDir = "hugo3/";
break;

View File

@ -53,6 +53,9 @@ class RandomSource;
* - Hugo's House of Horror
* - Whodunit?
* - Jungle of Doom
* - Hugo's Horrific Adventure
* - Hugo's Mystery Adventure
* - Hugo's Amazon Adventure
*/
namespace Hugo {