mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
DM: Add ObjectMan to DMEngine
This commit is contained in:
parent
359ef01a33
commit
23c1acff19
@ -18,6 +18,7 @@
|
||||
#include "menus.h"
|
||||
#include "champion.h"
|
||||
#include "loadsave.h"
|
||||
#include "objectman.h"
|
||||
|
||||
namespace DM {
|
||||
|
||||
@ -49,6 +50,7 @@ DMEngine::DMEngine(OSystem *syst) : Engine(syst), _console(nullptr) {
|
||||
_menuMan = nullptr;
|
||||
_championMan = nullptr;
|
||||
_loadsaveMan = nullptr;
|
||||
_objectMan = nullptr;
|
||||
_stopWaitingForPlayerInput = false;
|
||||
_gameTimeTicking = false;
|
||||
|
||||
@ -67,6 +69,7 @@ DMEngine::~DMEngine() {
|
||||
delete _menuMan;
|
||||
delete _championMan;
|
||||
delete _loadsaveMan;
|
||||
delete _objectMan;
|
||||
|
||||
// clear debug channels
|
||||
DebugMan.clearAllDebugChannels();
|
||||
@ -142,6 +145,7 @@ Common::Error DMEngine::run() {
|
||||
_menuMan = new MenuMan(this);
|
||||
_championMan = new ChampionMan(this);
|
||||
_loadsaveMan = new LoadsaveMan(this);
|
||||
_objectMan = new ObjectMan(this);
|
||||
_displayMan->setUpScreens(320, 200);
|
||||
|
||||
initializeGame(); // @ F0463_START_InitializeGame_CPSADEF
|
||||
|
@ -15,6 +15,7 @@ class EventManager;
|
||||
class MenuMan;
|
||||
class ChampionMan;
|
||||
class LoadsaveMan;
|
||||
class ObjectMan;
|
||||
|
||||
|
||||
enum direction {
|
||||
@ -99,6 +100,7 @@ public:
|
||||
MenuMan *_menuMan;
|
||||
ChampionMan *_championMan;
|
||||
LoadsaveMan *_loadsaveMan;
|
||||
ObjectMan *_objectMan;
|
||||
bool _stopWaitingForPlayerInput; // G0321_B_StopWaitingForPlayerInput
|
||||
bool _gameTimeTicking; // @ G0301_B_GameTimeTicking
|
||||
bool _restartGameAllowed; // @ G0524_B_RestartGameAllowed
|
||||
|
Loading…
x
Reference in New Issue
Block a user