OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Protected Member Functions | List of all members
LoaderTR1 Class Reference

#include <LoaderTR1.h>

Inheritance diagram for LoaderTR1:
[legend]
Collaboration diagram for LoaderTR1:
[legend]

Public Member Functions

virtual int load (std::string f)
 

Protected Member Functions

virtual void loadPalette ()
 
virtual void loadTextures ()
 
virtual void loadRoomLights ()
 
virtual void loadRoomStaticMeshes (std::vector< StaticModel * > &staticModels)
 
virtual void loadRoomVertex (RoomVertexTR2 &vert)
 
virtual void loadItems ()
 
virtual void loadBoxesOverlapsZones ()
 
virtual void loadSoundMap ()
 
virtual void loadSoundSamples ()
 
virtual int getPaletteIndex (uint16_t index)
 
virtual void loadAngleSet (BoneFrame *bf, BinaryReader &frame, uint16_t numMeshes, uint16_t startingMesh, uint32_t meshTree, uint32_t numMeshTrees, std::vector< int32_t > meshTrees)
 
- Protected Member Functions inherited from LoaderTR2
virtual void loadRoomDataEnd (int16_t &alternateRoom, unsigned int &roomFlags)
 
virtual void loadRoomMesh (std::vector< IndexedRectangle > &rectangles, std::vector< IndexedRectangle > &triangles, uint16_t &numRectangles, uint16_t &numTriangles)
 
virtual void loadRooms ()
 
virtual void loadFloorData ()
 
virtual void loadMeshes ()
 
virtual void loadMoveables ()
 
virtual void loadStaticMeshes ()
 
virtual void loadTextiles ()
 
virtual void loadSprites ()
 
virtual void loadCameras ()
 
virtual void loadSoundSources ()
 
virtual void loadAnimatedTextures ()
 
virtual void loadCinematicFrames ()
 
virtual void loadDemoData ()
 
virtual void loadSoundDetails ()
 
virtual void loadSampleIndices ()
 
virtual void loadExternalSoundFile (std::string f)
 
virtual int loadSoundFiles (BinaryReader &sfx, unsigned int count=0)
 
virtual BoneFrameloadFrame (BinaryReader &frame, uint16_t numMeshes, uint16_t startingMesh, uint32_t meshTree, uint32_t numMeshTrees, std::vector< int32_t > meshTrees)
 

Additional Inherited Members

- Public Types inherited from Loader
enum  LoaderVersion {
  TR_UNKNOWN = 0, TR_1 = 1, TR_2 = 2, TR_3 = 3,
  TR_4 = 4, TR_5 = 5
}
 
- Static Public Member Functions inherited from Loader
static LoaderVersion checkFile (std::string f)
 
static std::unique_ptr< LoadercreateLoader (std::string f)
 
- Protected Attributes inherited from Loader
BinaryFile file
 

Detailed Description

Definition at line 13 of file LoaderTR1.h.

Member Function Documentation

int LoaderTR1::load ( std::string  f)
virtual

Reimplemented from LoaderTR2.

Definition at line 16 of file LoaderTR1.cpp.

void LoaderTR1::loadPalette ( )
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 65 of file LoaderTR1.cpp.

void LoaderTR1::loadTextures ( )
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 83 of file LoaderTR1.cpp.

void LoaderTR1::loadRoomLights ( )
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 100 of file LoaderTR1.cpp.

void LoaderTR1::loadRoomStaticMeshes ( std::vector< StaticModel * > &  staticModels)
protectedvirtual
FIXME:
Use static mesh lighting information

Reimplemented from LoaderTR2.

Definition at line 117 of file LoaderTR1.cpp.

void LoaderTR1::loadRoomVertex ( RoomVertexTR2 vert)
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 142 of file LoaderTR1.cpp.

void LoaderTR1::loadItems ( )
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 151 of file LoaderTR1.cpp.

void LoaderTR1::loadBoxesOverlapsZones ( )
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 195 of file LoaderTR1.cpp.

void LoaderTR1::loadSoundMap ( )
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 252 of file LoaderTR1.cpp.

void LoaderTR1::loadSoundSamples ( )
protectedvirtual

Definition at line 258 of file LoaderTR1.cpp.

int LoaderTR1::getPaletteIndex ( uint16_t  index)
protectedvirtual

Reimplemented from LoaderTR2.

Definition at line 282 of file LoaderTR1.cpp.

void LoaderTR1::loadAngleSet ( BoneFrame bf,
BinaryReader frame,
uint16_t  numMeshes,
uint16_t  startingMesh,
uint32_t  meshTree,
uint32_t  numMeshTrees,
std::vector< int32_t >  meshTrees 
)
protectedvirtual
FIXME:
The TR Rosetta Stone documentation says: number of angle sets to follow; these start with the first mesh, and meshes without angles get zero angles. I'm not sure what this means. This code may be wrong.

Reimplemented from LoaderTR2.

Definition at line 286 of file LoaderTR1.cpp.


The documentation for this class was generated from the following files: