95 int load(std::string file);
121 std::string
getKeyString(
unsigned int i,
unsigned int j);
186 std::vector<std::vector<uint16_t>>
script;
189 std::vector<std::vector<std::string>>
puzzles;
190 std::vector<std::vector<std::string>>
pickups;
191 std::vector<std::vector<std::string>>
keys;
int runScript(unsigned int level)
unsigned int titleCount()
Start level without weapons.
std::vector< std::string > gameStrings
std::string getTitleFilename(unsigned int i)
Unknown, nothing changes in TR2.
Unknown, nothing changes in TR2. Start in Motorboat?
Strings XORed with cypherCode.
If set, game has no title screen.
Binary file reading utilities.
std::string getLevelFilename(unsigned int i)
std::string getLevelName(unsigned int i)
Lara dies when her feet reach given depth.
std::vector< std::vector< std::string > > keys
static const bool opcodeHasOperand[OP_UNKNOWN]
No option ring while in level.
std::vector< std::string > pcStrings
std::function< int(bool, uint16_t)> scriptHandlers[OP_UNKNOWN]
Play soundtrack (precedes level opcode)
unsigned int gameStringCount()
unsigned int pictureCount()
Display level-completion stats.
No effect, infinite ammo.
std::vector< std::string > titleFilenames
If set don't timeout input to start demo.
std::vector< std::string > pictureFilenames
void readScriptPackage(BinaryFile &f, std::vector< std::vector< uint16_t >> &v, unsigned int n)
Don't change screen resolution.
std::string getPickupString(unsigned int i, unsigned int j)
std::vector< std::string > cutsceneFilenames
Match N-S orientation of Room and animated characters.
std::string getPuzzleString(unsigned int i, unsigned int j)
unsigned int videoCount()
std::string getLanguage()
std::vector< std::string > levelFilenames
Usually set, no known effect.
Kill all enemies to finish the level.
std::vector< std::string > levelNames
std::vector< std::vector< uint16_t > > script
std::string getDescription()
Add automatic pistols (2)
int load(std::string file)
std::string getKeyString(unsigned int i, unsigned int j)
std::vector< std::vector< std::string > > pickups
void readStringPackage(BinaryFile &f, std::vector< std::string > &v, unsigned int n)
std::string getGameString(unsigned int i)
unsigned int pcStringCount()
std::vector< std::string > fmvFilenames
Unused in TR2. Or PSX? Used in TR3.
If zero, level does not account for secrets.
unsigned int cutsceneCount()
std::string getPictureFilename(unsigned int i)
std::vector< std::vector< std::string > > puzzles
unsigned int levelCount()
Level selectable in Title.
Disable flare/step/rotate/jump sequence.
Lara starts level without ammo or medi packs.
Does not compile. PSX? Used in TR3.
std::string getCutsceneFilename(unsigned int i)
Special animation of Lara when level starts.
End of game. Show stats, start credits sequence, music ID 52 in TR2.
std::string getPCString(unsigned int i)
std::string getVideoFilename(unsigned int i)
void registerScriptHandler(ScriptOpCode op, std::function< int(bool, uint16_t)> func)
Items given to Lara at level start (+1000), or at all secrets found (+0)