0ad/terrain/bak/0/GameResource.h
janwas f4f969482e Initial revision
This was SVN commit r8.
2003-11-03 16:17:21 +00:00

42 lines
866 B
C++
Executable File

//***********************************************************
//
// Name: GameResource.H
// Last Update: 7/2/02
// Author: Poya Manouchehri
//
// Description: A game resource provides an interface for a
// game resource type, ie ModelDefs, Bitmap and
// Textures, Sounds and Music. These can be
// accessed through a ResourceLibrary
//
//***********************************************************
#ifndef GAMERESOURCE_H
#define GAMERESOURCE_H
#include "Types.H"
enum RESOURCETYPE
{
RST_BITMAP,
RST_TEXTURE,
RST_MODELDEF,
RST_SOUND,
};
class CGameResource
{
public:
virtual FRESULT LoadResource (char *filename, RESOURCETYPE type);
char *GetName() { return m_Name; }
char *GetPath() { return m_Path; }
int GetType() { return m_Type; }
protected:
char m_Name[MAX_NAME_LENGTH];
char m_Path[MAX_PATH_LENGTH];
int m_Type;
};
#endif