mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 11:27:44 +00:00
![Giulio Camuffo](/assets/img/avatar_default.png)
This way commit 075c1cae is practically reverted without reintroducing #296 and fixing #423. Fix #423
68 lines
1.9 KiB
C++
68 lines
1.9 KiB
C++
/* Residual - A 3D game interpreter
|
|
*
|
|
* Residual 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 library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*
|
|
*/
|
|
|
|
#ifndef GRIM_OSTATE_H
|
|
#define GRIM_OSTATE_H
|
|
|
|
#include "engines/grim/pool.h"
|
|
#include "engines/grim/bitmap.h"
|
|
|
|
namespace Grim {
|
|
|
|
class SaveGame;
|
|
|
|
class ObjectState : public PoolObject<ObjectState, MKTAG('S', 'T', 'A', 'T')> {
|
|
public:
|
|
enum Position {
|
|
OBJSTATE_BACKGROUND = 0,
|
|
OBJSTATE_UNDERLAY = 1,
|
|
OBJSTATE_OVERLAY = 2,
|
|
OBJSTATE_STATE = 3
|
|
};
|
|
|
|
ObjectState(int setupID, ObjectState::Position pos, const char *bitmap, const char *zbitmap, bool visible);
|
|
ObjectState();
|
|
~ObjectState();
|
|
|
|
void saveState(SaveGame *savedState) const;
|
|
bool restoreState(SaveGame *savedState);
|
|
|
|
int getSetupID() const { return _setupID; }
|
|
Position getPos() const { return _pos; }
|
|
void setPos(Position position) { _pos = position; }
|
|
|
|
const Common::String &getBitmapFilename() const;
|
|
|
|
void setActiveImage(int val);
|
|
void draw();
|
|
|
|
private:
|
|
bool _visibility;
|
|
int _setupID;
|
|
Position _pos;
|
|
Bitmap::Ptr _bitmap, _zbitmap;
|
|
};
|
|
|
|
} // end of namespace Grim
|
|
|
|
#endif
|