OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Loader Class Referenceabstract

#include <Loader.h>

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

Public Types

enum  LoaderVersion {
  TR_UNKNOWN = 0, TR_1 = 1, TR_2 = 2, TR_3 = 3,
  TR_4 = 4, TR_5 = 5
}
 

Public Member Functions

virtual int load (std::string f)=0
 

Static Public Member Functions

static LoaderVersion checkFile (std::string f)
 
static std::unique_ptr< LoadercreateLoader (std::string f)
 

Protected Attributes

BinaryFile file
 

Detailed Description

Definition at line 17 of file Loader.h.

Member Enumeration Documentation

Enumerator
TR_UNKNOWN 
TR_1 
TR_2 
TR_3 
TR_4 
TR_5 

Definition at line 19 of file Loader.h.

Member Function Documentation

Loader::LoaderVersion Loader::checkFile ( std::string  f)
static

Definition at line 14 of file Loader.cpp.

std::unique_ptr< Loader > Loader::createLoader ( std::string  f)
static

Definition at line 39 of file Loader.cpp.

virtual int Loader::load ( std::string  f)
pure virtual

Implemented in LoaderTR2, LoaderTR1, and LoaderTR3.

Member Data Documentation

BinaryFile Loader::file
protected

Definition at line 34 of file Loader.h.


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