Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

game_manager.cpp File Reference

#include <fstream>
#include <string>
#include <iostream>
#include <assert.h>
#include "bsp.h"
#include "level.h"
#include "game_manager.h"
#include "main.h"
#include "errrors_display.h"

Go to the source code of this file.

Defines

#define DELAY_BETWEEN_ADDED_ITEMS   0.5
#define PX_GAME_OVER_MESSAGE   TX_SCREEN/2-276/2
#define PY_GAME_OVER_MESSAGE   TY_SCREEN/2-128/2
#define PX_VICTORY_MESSAGE   TX_SCREEN/2-276/2
#define PY_VICTORY_MESSAGE   TY_SCREEN/2-128/2
#define PX_PRESS_SPACE_MESSAGE   TX_SCREEN/2-276/2
#define PY_PRESS_SPACE_MESSAGE   TY_SCREEN/2-128/2
#define CADEAUX_FREQUENCY   0.8
#define PX_COEURS   50
#define PY_COEURS   550
#define ECART_X_COEURS   40
#define X_DISPLAY_LEFT_TIME   200
#define Y_DISPLAY_LEFT_TIME   510
#define X_DISPLAY_SCORE   200
#define Y_DISPLAY_SCORE   550
#define PERCENT_CADEAUX_POINTS   80
#define PERCENT_CADEAUX_TELEPORTEUR   6
#define PERCENT_CADEAUX_HOLOGRAMME   6
#define PERCENT_CADEAUX_BOMB   6
#define PERCENT_CADEAUX_COEUR   2
#define KEYDOWN(buf, key)   (buf[key] & 0x80)

Functions

void Call_Back_Display_Wall (cHV_Node *node)

Variables

char * Level_Files [N_LEVELS] = { "../levels/level1.txt","../levels/level2.txt","../levels/level3.txt"}


Define Documentation

#define CADEAUX_FREQUENCY   0.8
 

Definition at line 28 of file game_manager.cpp.

Referenced by cGame_Manager::Generate_Cadeaux().

#define DELAY_BETWEEN_ADDED_ITEMS   0.5
 

Definition at line 17 of file game_manager.cpp.

Referenced by cGame_Manager::Read_Keyboard_And_React().

#define ECART_X_COEURS   40
 

Definition at line 32 of file game_manager.cpp.

Referenced by cGame_Manager::Display_Inventaire_Player().

#define KEYDOWN buf,
key   )     (buf[key] & 0x80)
 

Definition at line 47 of file game_manager.cpp.

Referenced by cGame_Manager::Read_Keyboard_And_React().

#define PERCENT_CADEAUX_BOMB   6
 

Definition at line 43 of file game_manager.cpp.

Referenced by cGame_Manager::Generate_Cadeaux().

#define PERCENT_CADEAUX_COEUR   2
 

Definition at line 44 of file game_manager.cpp.

Referenced by cGame_Manager::Generate_Cadeaux().

#define PERCENT_CADEAUX_HOLOGRAMME   6
 

Definition at line 42 of file game_manager.cpp.

Referenced by cGame_Manager::Generate_Cadeaux().

#define PERCENT_CADEAUX_POINTS   80
 

Definition at line 40 of file game_manager.cpp.

Referenced by cGame_Manager::Generate_Cadeaux().

#define PERCENT_CADEAUX_TELEPORTEUR   6
 

Definition at line 41 of file game_manager.cpp.

Referenced by cGame_Manager::Generate_Cadeaux().

#define PX_COEURS   50
 

Definition at line 30 of file game_manager.cpp.

Referenced by cGame_Manager::Display_Inventaire_Player().

#define PX_GAME_OVER_MESSAGE   TX_SCREEN/2-276/2
 

Definition at line 19 of file game_manager.cpp.

Referenced by cGame_Manager::Main_Loop().

#define PX_PRESS_SPACE_MESSAGE   TX_SCREEN/2-276/2
 

Definition at line 25 of file game_manager.cpp.

Referenced by cGame_Manager::Main_Loop().

#define PX_VICTORY_MESSAGE   TX_SCREEN/2-276/2
 

Definition at line 22 of file game_manager.cpp.

Referenced by cGame_Manager::Main_Loop().

#define PY_COEURS   550
 

Definition at line 31 of file game_manager.cpp.

Referenced by cGame_Manager::Display_Inventaire_Player().

#define PY_GAME_OVER_MESSAGE   TY_SCREEN/2-128/2
 

Definition at line 20 of file game_manager.cpp.

Referenced by cGame_Manager::Main_Loop().

#define PY_PRESS_SPACE_MESSAGE   TY_SCREEN/2-128/2
 

Definition at line 26 of file game_manager.cpp.

Referenced by cGame_Manager::Main_Loop().

#define PY_VICTORY_MESSAGE   TY_SCREEN/2-128/2
 

Definition at line 23 of file game_manager.cpp.

Referenced by cGame_Manager::Main_Loop().

#define X_DISPLAY_LEFT_TIME   200
 

Definition at line 34 of file game_manager.cpp.

Referenced by cGame_Manager::Display_Time().

#define X_DISPLAY_SCORE   200
 

Definition at line 37 of file game_manager.cpp.

Referenced by cGame_Manager::Display_Score().

#define Y_DISPLAY_LEFT_TIME   510
 

Definition at line 35 of file game_manager.cpp.

Referenced by cGame_Manager::Display_Time().

#define Y_DISPLAY_SCORE   550
 

Definition at line 38 of file game_manager.cpp.

Referenced by cGame_Manager::Display_Score().


Function Documentation

void Call_Back_Display_Wall cHV_Node node  ) 
 

Definition at line 268 of file game_manager.cpp.

References cHV_Node, cBSP_Node< Divider_Type >::Divider, and g_pDisplay.

Referenced by cGame_Manager::Display().


Variable Documentation

char* Level_Files[N_LEVELS] = { "../levels/level1.txt","../levels/level2.txt","../levels/level3.txt"} [static]
 

Definition at line 51 of file game_manager.cpp.

Referenced by cGame_Manager::Load_Level().


Generated on Fri May 21 19:22:37 2004 for LIBELL by doxygen 1.3.7