File: game.h

package info (click to toggle)
epiphany 0.5.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,540 kB
  • ctags: 593
  • sloc: cpp: 4,223; makefile: 80; sh: 11
file content (104 lines) | stat: -rw-r--r-- 2,158 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/***************************************************************************
                          game.h  -  description
                             -------------------
    begin                : Tue Aug 28 2001
    copyright            : (C) 2001 by Giuseppe D'Aqu
    email                : kumber@tiscalinet.it
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "dephine.h"
#include "sprite.h"
#include "direction.h"
#include "entity_type.h"
#include "entity.h"
#include "entity_all.h"
#include "game_timer.h"
#include "spriteset.h"
#include "sfx.h"
#include "level.h"
#include <vector>
#include "screen.h"


#ifndef GAME_H
#define GAME_H
class Menu;


class Game
{

private:

	CL_String m_resource_path;
	
	Sampleset m_sampleset;
	
	Spriteset m_spriteset;
	
	Screen m_screen;
	
	Game_Timer m_time;
	
	CL_InputBuffer m_input_buffer;
	
	Level* m_level;
	
	CL_Font* m_game_font;
	
	CL_Font* m_time_font;
	
	CL_Font* m_credits_font;
	
//CL_String m_map_path;
	unsigned int m_unsolved_level;
	
	unsigned int m_max_num_of_levels;
	
	CL_String m_ini_path;

	CL_ResourceManager* m_res_manag;

public:

	Game();
	
	void go();
	
	bool main_loop();
	
	~Game();
	
	void get_keys();
	
	//carica gli sprites e li immagazzina in m_sprites
	void load_fonts();
	
	void load_config();
	
	void move_all();
	
	void draw();
	
	void draw_score();
	
	void show_credits();
	
	CL_ResourceManager* get_resource_manager();
	
//	int menu(); //return false if "quit", else set the number of level
	

};

#endif //GAME_H