00001
00002
00007
00008
00009
#ifndef LEVEL_H
00010
#define LEVEL_H
00011
00012
00013
class cLevel_Loader;
00014
00015
00016
00017
#include <fstream>
00018
00019
#include "game_BSP.h"
00020
#include "game_manager.h"
00021
#include "bonus.h"
00022
00023
00024
00025
00026
00027
00029
00030 class cLevel_Loader
00031 {
00032
public:
00034
00035
bool Load(
char * filename ,
cGame_Manager * game);
00036
00037
private:
00039
00040
bool Read_Area(std::ifstream & in,
cGame_Manager * game);
00041
00043
00044
bool Read_Wall(std::ifstream & in,
cGame_Manager * game);
00045
00047
00048
bool Read_Interactive_Item(
Interactive_Item_Type type,ifstream& in ,
cGame_Manager * game);
00049
00051
00052
bool Read_Ennemy(
Ennemy_Type type,ifstream& in ,
cGame_Manager * game);
00053
00055
00056
bool Read_Time(ifstream& in,
cGame_Manager * game);
00057
00059
00060
bool Read_Player(ifstream& in,
cGame_Manager * game);
00061
00062
00064
void Display_Error(
int n_line ,
char * file);
00065 };
00066
00067
00068
#endif