scummvm/engines/dragons/dragonrms.h
2020-05-04 12:35:06 +02:00

64 lines
1.8 KiB
C++

/* 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 DRAGONS_DRAGONRMS_H
#define DRAGONS_DRAGONRMS_H
#include "common/system.h"
namespace Dragons {
struct RMS {
int32 _field0;
char _sceneName[4];
uint32 _afterDataLoadScript;
int32 _afterSceneLoadScript;
uint32 _beforeLoadScript;
int16 _inventoryBagPosition;
int32 _field16;
int16 _field1a;
};
class BigfileArchive;
class DragonOBD;
class DragonRMS {
private:
uint16 _count;
RMS *_rmsObjects;
DragonOBD *_dragonOBD;
public:
DragonRMS(BigfileArchive *bigfileArchive, DragonOBD *dragonOBD);
~DragonRMS();
char *getSceneName(uint32 sceneId);
byte *getAfterSceneDataLoadedScript(uint32 sceneId);
byte *getBeforeSceneDataLoadedScript(uint32 sceneId);
byte *getAfterSceneLoadedScript(uint32 sceneId);
int16 getInventoryPosition(uint32 sceneId);
private:
RMS *getRMS(uint32 sceneId);
};
} // End of namespace Dragons
#endif //DRAGONS_DRAGONRMS_H