File: debugger.cc

package info (click to toggle)
enemylines7 0.6-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,640 kB
  • sloc: cpp: 21,756; makefile: 24
file content (40 lines) | stat: -rw-r--r-- 768 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


#include "debugger.h"

#include "material.h"
#include "block.h"
#include "tweak/tweak.h"
#include "cube.h"

namespace block {

void Debugger::debug(Block *b,Block *selected,bool showall) {
	std::cout << " debug " << b << "  " << selected << std::endl;
	Blockinfo3 bi;
	bi.block_=b;
	debug(bi,selected,showall);
}
void Debugger::debug(Blockinfo3 bi,Block *selected,bool showall) {
	if (bi.block_->is_splitted()) {
		if (bi.block_==selected) {
		}
		for (unsigned int i=0;i<8;i++) {
			debug(bi.get_descend(i),selected,showall);
		}
		return;
	}
	E_Material mat;

	mat=bi.block_->get_material();
	if (mat==M_NONE) {
		if (!showall) return;
		mat=M_NONEEDIT;
	}
	if (bi.block_==selected) {
	}
	std::cout << bi.block_ << "  " << selected << std::endl;
}


} //namespace