aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/preagi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/preagi.cpp')
-rw-r--r--engines/agi/preagi.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/engines/agi/preagi.cpp b/engines/agi/preagi.cpp
index b1c9b53a22..5bbf072918 100644
--- a/engines/agi/preagi.cpp
+++ b/engines/agi/preagi.cpp
@@ -30,11 +30,6 @@
#include "agi/preagi.h"
#include "agi/graphics.h"
-// preagi engines
-#include "agi/preagi_mickey.h"
-#include "agi/preagi_troll.h"
-#include "agi/preagi_winnie.h"
-
namespace Agi {
PreAgiEngine::PreAgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBase(syst, gameDesc) {
@@ -137,32 +132,6 @@ PreAgiEngine::~PreAgiEngine() {
delete _speakerStream;
}
-
-Common::Error PreAgiEngine::go() {
- setflag(fSoundOn, true); // enable sound
-
-//
-// FIXME (Fingolfin asks): Why are Mickey and Troll standalone classes
-// instead of being subclasses of PreAgiEngine ?
-//
-
- // run preagi engine main loop
- switch (getGameID()) {
- case GID_TROLL:
- {
- Troll *troll = new Troll(this);
- troll->init();
- troll->run();
- delete troll;
- }
- break;
- default:
- error("Unknown preagi engine");
- break;
- }
- return Common::kNoError;
-}
-
int PreAgiEngine::rnd(int hi) {
return (_rnd->getRandomNumber(hi - 1) + 1);
}