File: level.h

package info (click to toggle)
enemylines3 1.2-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,380 kB
  • ctags: 1,444
  • sloc: cpp: 16,323; makefile: 74; sh: 52
file content (38 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (6)
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
#ifndef __el__level_h
#define __el__level_h

#include <iostream>

#include "../release.h"
#include "../coordinate.h"

#include "SDL_opengl.h"

namespace PRJID {

class Level {
	unsigned int current;
	unsigned int font;
	unsigned int width;
	C3 pos;
	GLuint label_dl;
public:
	Level();
	~Level();
	void reset();
	void set_current(unsigned int c);

	unsigned int get();

	void gain(unsigned int g);
	void reduce(unsigned int g);
	void change(int g);

	void label(std::string n,C3 pos);
	void dim(C3 pos,unsigned int width,unsigned int font=0);
	void draw();
};

} //namespace

#endif