/* 
	PScript by Peter Pon
	scene13
*/
#include "..\PScriptLib\Def.h"

#include "..\PScriptLib\box.pst"
#include "..\PScriptLib\desk.pst"
#include "..\PScriptLib\chair.pst"
#include "..\PScriptLib\jug.pst"

int g_bBridge01Alive;
int g_bBridge02Alive;
int g_iBridge01HP;
int g_iBridge02HP;

Scene_OnLoad()
{
	int i;
	string name;
	
	SetSceneItem("D_floor01", "name", "machine");
	SetSceneItem("D_floor02", "name", "machine");
	SetSceneItem("D_floor03", "name", "machine");
	SetSceneItem("D_floor04", "name", "machine");
	SetSceneItem("D_floor05", "name", "machine");
	SetSceneItem("D_floor06", "name", "machine");
	SetSceneItem("D_floor07", "name", "machine");
	SetSceneItem("D_floor08", "name", "machine");
	SetSceneItem("D_floor09", "name", "machine");
	SetSceneItem("D_floor10", "name", "machine");
	SetSceneItem("D_floor11", "name", "machine");
	SetSceneItem("D_floor12", "name", "machine");
	SetSceneItem("D_floor13", "name", "machine");
	SetSceneItem("D_floor14", "name", "machine");
	SetSceneItem("D_floor15", "name", "machine");
	SetSceneItem("D_floor16", "name", "machine");
	SetSceneItem("D_floor17", "name", "machine");
	SetSceneItem("D_floor18", "name", "machine");
	SetSceneItem("D_floor19", "name", "machine");
	SetSceneItem("D_floor20", "name", "machine");
	SetSceneItem("po01", "name", "machine");
	SetSceneItem("po02", "name", "machine");
	SetSceneItem("po03", "name", "machine");
	SetSceneItem("po04", "name", "machine");
	SetSceneItem("po05", "name", "machine");
}

Scene_OnInit()
{
	int i;
	string name;

	SetSceneItem("D_bridge01", "attribute", "collision", 1);
	SetSceneItem("D_bridge02", "attribute", "collision", 1);
	SetSceneItem("D_floor01", "attribute", "collision", 1);
	SetSceneItem("D_floor02", "attribute", "collision", 1);
	SetSceneItem("D_floor03", "attribute", "collision", 1);
	SetSceneItem("D_floor04", "attribute", "collision", 1);
	SetSceneItem("D_floor05", "attribute", "collision", 1);
	SetSceneItem("D_floor06", "attribute", "collision", 1);
	SetSceneItem("D_floor07", "attribute", "collision", 1);
	SetSceneItem("D_floor08", "attribute", "collision", 1);
	SetSceneItem("D_floor09", "attribute", "collision", 1);
	SetSceneItem("D_floor10", "attribute", "collision", 1);
	SetSceneItem("D_floor10", "attribute", "damage", 1);
	SetSceneItem("D_floor11", "attribute", "collision", 1);
	SetSceneItem("D_floor12", "attribute", "collision", 1);
	SetSceneItem("D_floor13", "attribute", "collision", 1);
	SetSceneItem("D_floor14", "attribute", "collision", 1);
	SetSceneItem("D_floor15", "attribute", "collision", 1);
	SetSceneItem("D_floor16", "attribute", "collision", 1);
	SetSceneItem("D_floor17", "attribute", "collision", 1);
	SetSceneItem("D_floor18", "attribute", "collision", 1);
	SetSceneItem("D_floor19", "attribute", "collision", 1);
	SetSceneItem("D_floor20", "attribute", "collision", 1);
	SetSceneItem("po01", "attribute", "collision", 1);
	SetSceneItem("po02", "attribute", "collision", 1);
	SetSceneItem("po03", "attribute", "collision", 1);
	SetSceneItem("po04", "attribute", "collision", 1);
	SetSceneItem("po05", "attribute", "collision", 1);
	InitBoxes(g_iNumBoxes);
	InitBBoxes(g_iNumBBoxes);
	InitChairs(g_iNumChairs);
	InitDeskes(g_iNumDeskes);
	InitJugs(g_iNumJugs);	

}
