diff options
author | Filippos Karapetis | 2019-08-16 14:14:51 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-08-16 14:16:43 +0300 |
commit | 878675cbd0487b2064abdd452006fdcfb8d6896d (patch) | |
tree | d40e7acbdb63a720afba267d50806d735f525f11 /engines/startrek/startrek.h | |
parent | 2b6d58cbb202a01c99bc0d6c2318802591ac7492 (diff) | |
download | scummvm-rg350-878675cbd0487b2064abdd452006fdcfb8d6896d.tar.gz scummvm-rg350-878675cbd0487b2064abdd452006fdcfb8d6896d.tar.bz2 scummvm-rg350-878675cbd0487b2064abdd452006fdcfb8d6896d.zip |
STARTREK: Simplify screen name code and add the "actions" debug command
- The screen name and map name code have been merged and simplified
- Some usage of SharedPtr has been adapted
- Duplicate code for loading the room map has been merged
- The "actions" command has been imported from the tools code
- Cleanup
Diffstat (limited to 'engines/startrek/startrek.h')
-rw-r--r-- | engines/startrek/startrek.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/startrek/startrek.h b/engines/startrek/startrek.h index 5f4dc61801..3e27e002af 100644 --- a/engines/startrek/startrek.h +++ b/engines/startrek/startrek.h @@ -322,7 +322,7 @@ public: bool isPositionSolid(int16 x, int16 y); void loadRoomIndex(int roomIndex, int spawnIndex); - SharedPtr<Room> getRoom(); + Room *getRoom(); // intro.cpp private: @@ -673,7 +673,11 @@ public: Common::Platform getPlatform() const; uint8 getGameType() const; Common::Language getLanguage() const; - + + // _screenName = _missionName + _roomIndex + Common::String getScreenName() const { + return _missionName + (char)(_roomIndex + '0'); + } // Variables public: @@ -690,8 +694,6 @@ public: Common::String _missionName; int _roomIndex; - Common::String _screenName; // _screenName = _missionName + _roomIndex - Common::String _mapFilename; // Similar to _screenName, but used for .map files? Common::MemoryReadStreamEndian *_mapFile; Fixed16 _playerActorScale; @@ -782,9 +784,8 @@ public: private: Common::RandomSource _randomSource; Common::SineTable _sineTable; - + Room *_room; Common::MacResManager *_macResFork; - SharedPtr<Room> _room; }; // Static function |