示例#1
0
void DreamGenContext::turnpathon(uint8 param) {
	findormake(param, 0xff, data.byte(kRoomnum) + 100);
	PathNode *roomsPaths = getroomspathsCPP()->nodes;
	if (param == 0xff)
		return;
	roomsPaths[param].b6 = 0xff;
}
示例#2
0
void DreamGenContext::turnanypathoff(uint8 param, uint8 room) {
    findormake(param, 0x00, room + 100);
    PathNode *paths = (PathNode *)segRef(data.word(kReels)).ptr(kPathdata + 144 * room, 0);
    paths[param].on = 0x00;
}
示例#3
0
void DreamGenContext::removesetobject(uint8 index) {
	findormake(index, 0xff, 0);
	getsetad(index)->mapad[0] = 0xff;
}
示例#4
0
void DreamGenContext::placesetobject(uint8 index) {
	findormake(index, 0, 0);
	getsetad(index)->mapad[0] = 0;
}
示例#5
0
void DreamGenContext::findormake() {
	uint8 b0 = al;
	uint8 b2 = cl;
	uint8 b3 = ch;
	findormake(b0, b2, b3);
}