File: mapswitch.cc

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 (35 lines) | stat: -rw-r--r-- 645 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
#include "mapswitch.h"

namespace el3 {

Mapswitch::Mapswitch(Mapbase *m) {
	m_=m;
}

unsigned int Mapswitch::dx() { return m_->dx(); }
unsigned int Mapswitch::dy() { return m_->dz(); }
unsigned int Mapswitch::dz() { return m_->dy(); }

void Mapswitch::clear(e_tiletype t) {
	m_->clear(t);
}

bool Mapswitch::inside(C3 c) {
	return m_->inside(C3(c.x,c.z,c.y));
}

void Mapswitch::set(C3 c,e_tiletype t) {
	m_->set(C3(c.x,c.z,c.y),t);
}
	
e_tiletype Mapswitch::get(C3 c) {
	return m_->get(C3(c.x,c.z,c.y));
}
void Mapswitch::lower(C3 c) {
	m_->lower(C3(c.x,c.z,c.y));
}
void Mapswitch::raise(C3 c) {
	m_->raise(C3(c.x,c.z,c.y));
}

} //namespace