This commit is contained in:
parent
2fad046dec
commit
14c4c0e762
35
source/level/level.cpp
Normal file
35
source/level/level.cpp
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/*************/
|
||||||
|
/*** Level ***/
|
||||||
|
/*************/
|
||||||
|
|
||||||
|
#include "system\global.h"
|
||||||
|
#include "fileio\fileio.h"
|
||||||
|
#include <DStructs.h>
|
||||||
|
|
||||||
|
#include "level\level.h"
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
void CLevel::init()
|
||||||
|
{
|
||||||
|
CFileIO::loadFile(CHAPTER01_LEVEL01_LVL,"Level Data");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
void CLevel::shutdown()
|
||||||
|
{
|
||||||
|
MemFree(this->LvlData);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
void CLevel::render()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
void CLevel::think(int _frames)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
28
source/level/level.h
Normal file
28
source/level/level.h
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*******************/
|
||||||
|
/*** Level Class ***/
|
||||||
|
/*******************/
|
||||||
|
|
||||||
|
#ifndef __LEVEL_LEVEL_H__
|
||||||
|
#define __LEVEL_LEVEL_H__
|
||||||
|
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
class CLevel
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CLevel(){}
|
||||||
|
virtual ~CLevel(){}
|
||||||
|
|
||||||
|
|
||||||
|
void init();
|
||||||
|
void shutdown();
|
||||||
|
void render();
|
||||||
|
void think(int _frames);
|
||||||
|
|
||||||
|
private:
|
||||||
|
sLvlHdr *LvlData;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user