Example #1
0
File: main.cpp Project: CCJY/coliru
int main(void)
{
	Door d;

	d.open();
	d.open();
	d.close();
	d.close();
	d.open();

	return 0;
}
Example #2
0
void Functions::actionCloseDoor(Aurora::NWScript::FunctionContext &ctx) {
	Door *door = NWN::ObjectContainer::toDoor(getParamObject(ctx, 0));
	if (door)
		door->close(NWN::ObjectContainer::toObject(ctx.getCaller()));
}