File: map.h

package info (click to toggle)
enemylines3 1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,384 kB
  • ctags: 1,445
  • sloc: cpp: 16,323; makefile: 70; sh: 52
file content (53 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (5)
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
#ifndef __el3__map_h
#define __el3__map_h

#include <iostream>

#include "coordinate.h"
#include "mapbase.h"


#define MX 40
#define MZ 40

namespace el3 {

class Map : public Mapbase{
	void init();
	e_tiletype data[MX][MZ];
public:

	Map();

	unsigned int dx();
	unsigned int dy();
	unsigned int dz();


	bool Map::inside(C3 c);
	
	e_tiletype get(C3);
	void set(C3,e_tiletype);

	void clear(e_tiletype t);
	
	void destroy(C3 p);

	static int typetoheight(e_tiletype t);

	bool isvalid(C3 p,C3 *ret);
	bool isvalid(C3 p,float y,C3 *ret);
	bool isvalid(e_tiletype t,float y);

	bool isvalid(C3f p,C3 *ret);
	bool invalidahead(C3f p,C3 *ret);

	void lower(C3 p);
	void raise(C3 p);
};

std::ostream& operator<<(std::ostream&s, Map);

} //namespace

#endif