scummvm/engines/mutationofjb/game.h

74 lines
1.8 KiB
C
Raw Normal View History

/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef MUTATIONOFJB_GAME_H
#define MUTATIONOFJB_GAME_H
#include "common/scummsys.h"
#include "mutationofjb/script.h"
namespace Common {
class String;
}
namespace MutationOfJB {
class Command;
2018-03-20 17:58:45 +00:00
class MutationOfJBEngine;
class GameData;
class Script;
class Room;
2018-03-20 17:58:45 +00:00
class Game {
public:
Game(MutationOfJBEngine *vm);
2018-03-20 17:58:45 +00:00
GameData &getGameData();
Script *getGlobalScript() const;
Script *getLocalScript() const;
2018-03-20 17:58:45 +00:00
void changeScene(uint8 sceneId, bool partB);
Script *changeSceneDelayScript(uint8 sceneId, bool partB);
void update();
private:
2018-03-20 17:58:45 +00:00
bool loadGameData(bool partB);
void runActiveCommand();
void startCommand(Command *cmd);
Script *changeSceneLoadScript(uint8 sceneId, bool partB);
2018-03-20 17:58:45 +00:00
MutationOfJBEngine *_vm;
2018-03-20 17:58:45 +00:00
GameData *_gameData;
Script *_globalScript;
Script *_localScript;
Script *_delayedLocalScript;
2018-03-20 17:58:45 +00:00
Room *_room;
ScriptExecutionContext _scriptExecCtx;
};
}
#endif