XEEN: Create a WorldOfXeen sub-namespace

This commit is contained in:
Paul Gilbert 2016-09-22 18:36:30 -04:00
parent 5bcb60995b
commit edaf645ae0
7 changed files with 15 additions and 1 deletions

View File

@ -116,7 +116,7 @@ bool XeenMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGame
case Xeen::GType_Clouds:
case Xeen::GType_DarkSide:
case Xeen::GType_WorldOfXeen:
*engine = new Xeen::WorldOfXeenEngine(syst, gd);
*engine = new Xeen::WorldOfXeen::WorldOfXeenEngine(syst, gd);
break;
default:
break;

View File

@ -25,6 +25,7 @@
#include "xeen/sound.h"
namespace Xeen {
namespace WorldOfXeen {
bool CloudsCutscenes::showCloudsTitle() {
EventsManager &events = *_vm->_events;
@ -466,4 +467,5 @@ const uint CloudsCutscenes::_INTRO_FRAMES_WAIT[8][32] = {
}
};
} // End of namespace WorldOfXeen
} // End of namespace Xeen

View File

@ -27,6 +27,7 @@
#include "xeen/xeen.h"
namespace Xeen {
namespace WorldOfXeen {
class CloudsCutscenes : public Cutscenes {
private:
@ -52,6 +53,8 @@ public:
*/
bool showCloudsEnding();
};
} // End of namespace WorldOfXeen
} // End of namespace Xeen
#endif /* XEEN_WORLDOFXEEN_CLOUDS_CUTSCENES_H */

View File

@ -27,6 +27,7 @@
#include "xeen/xeen.h"
namespace Xeen {
namespace WorldOfXeen {
static const int CUTSCENES_XLIST[32] = {
146, 145, 143, 141, 141, 141, 141, 141, 141, 141, 141, 142, 143, 144, 145, 146,
@ -1227,4 +1228,5 @@ void DarkSideCutscenes::showPharaohEndText(const char *msg1, const char *msg2, c
}
}
} // End of namespace WorldOfXeen
} // End of namespace Xeen

View File

@ -29,6 +29,8 @@ namespace Xeen {
class XeenEngine;
namespace WorldOfXeen {
class DarkSideCutscenes : public Cutscenes {
protected:
/**
@ -59,6 +61,7 @@ public:
void showDarkSideScore();
};
} // End of namespace WorldOfXeen
} // End of namespace Xeen
#endif /* XEEN_WORLDOFXEEN_DARKSIDE_CUTSCENES_H */

View File

@ -26,6 +26,7 @@
#include "xeen/sound.h"
namespace Xeen {
namespace WorldOfXeen {
WorldOfXeenEngine::WorldOfXeenEngine(OSystem *syst, const XeenGameDescription *gameDesc)
: XeenEngine(syst, gameDesc), CloudsCutscenes(this),
@ -48,4 +49,5 @@ void WorldOfXeenEngine::showIntro() {
*/
}
} // End of namespace WorldOfXeen
} // End of namespace Xeen

View File

@ -28,6 +28,7 @@
#include "xeen/worldofxeen/darkside_cutscenes.h"
namespace Xeen {
namespace WorldOfXeen {
/**
* Implements a descendant of the base Xeen engine to handle
@ -45,6 +46,7 @@ public:
virtual ~WorldOfXeenEngine() {}
};
} // End of namespace WorldOfXeen
} // End of namespace Xeen
#endif /* XEEN_WORLDOFXEEN_WORLDOFXEEN_H */