private static void CreateProgramProhibit() { programProhibitCalculator.SetCost(new BaseCost(0)); programProhibitCalculator.GetEffect().Set("Program", "Prohibited"); programProhibitCalculator.GetPreconditions().Add("Program_Calculator_Allowed", false); programProhibitCalculator.GetPreconditions().Add("Program", "Calculator"); programProhibitDictionary.SetCost(new BaseCost(0)); programProhibitDictionary.GetEffect().Set("Program", "Prohibited"); programProhibitDictionary.GetPreconditions().Add("Program_Dictionary_Allowed", false); programProhibitDictionary.GetPreconditions().Add("Program", "Dictionary"); programProhibitBrowser.SetCost(new BaseCost(0)); programProhibitBrowser.GetEffect().Set("Program", "Prohibited"); programProhibitBrowser.GetPreconditions().Add("Program_Browser_Allowed", true); programProhibitBrowser.GetPreconditions().Add("Program", "Browser"); programProhibitText.SetCost(new BaseCost(0)); programProhibitText.GetEffect().Set("Program", "Prohibited"); programProhibitText.GetPreconditions().Add("Program_Text_Allowed", true); programProhibitText.GetPreconditions().Add("Program", "Text"); programProhibitCode.SetCost(new BaseCost(0)); programProhibitCode.GetEffect().Set("Program", "Prohibited"); programProhibitCode.GetPreconditions().Add("Program_Code_Allowed", true); programProhibitCode.GetPreconditions().Add("Program", "Code"); }
private static void CreateItemAllow() { itemAllowPhone.SetCost(new BaseCost(0)); itemAllowPhone.GetEffect().Set("Item", "Allowed"); itemAllowPhone.GetPreconditions().Add("Item_Phone_Allowed", true); itemAllowPhone.GetPreconditions().Add("Item", "Phone"); }
private static void CreateDistractionComputer() { distractionComputer.SetCost(new BaseCost(0)); distractionComputer.GetEffect().Set("Distraction", "Computer"); distractionComputer.GetPreconditions().Add("Location", "Desk"); distractionComputer.GetPreconditions().Add("Program", "Allowed"); }
private static void CreateItemProhibit() { itemProhibitPhone.SetCost(new BaseCost(0)); itemProhibitPhone.GetEffect().Set("Item", "Prohibited"); itemProhibitPhone.GetPreconditions().Add("Item_Phone_Allowed", false); itemProhibitPhone.GetPreconditions().Add("Item", "Phone"); }
private static void CreateCheatBase() { cheatBaseGoTo.SetCost(new BaseCost(0)); cheatBaseGoTo.GetEffect().Set("Cheat", true); cheatBaseGoTo.GetPreconditions().Add("Location", "Allowed"); cheatBaseGoTo.GetPreconditions().Add("Item", "Prohibited"); cheatBaseComputer.SetCost(new BaseCost(0)); cheatBaseComputer.GetEffect().Set("Cheat", true); cheatBaseComputer.GetPreconditions().Add("Location", "Desk"); cheatBaseComputer.GetPreconditions().Add("Program", "Prohibited"); }
private static void CreateOther() { otherNone.SetCost(new BaseCost(0)); otherNone.GetEffect().Set("None", true); otherEnd.SetCost(new BaseCost(0)); otherEnd.GetEffect().Set("End", true); otherEnd.GetPreconditions().Add("Location", "DockStation"); otherEnd.GetPreconditions().Add("Wait", true); otherIdle.SetCost(new BaseCost(0)); otherIdle.GetEffect().Set("Idle", true); otherIdle.GetPreconditions().Add("Wait", true); }
private static void CreateProgramAny() { programAnyCalculator.SetCost(new BaseCost(0)); programAnyCalculator.GetEffect().Set("Program", "Any"); programAnyCalculator.GetPreconditions().Add("Program", "Calculator"); programAnyDictionary.SetCost(new BaseCost(0)); programAnyDictionary.GetEffect().Set("Program", "Any"); programAnyDictionary.GetPreconditions().Add("Program", "Dictionary"); programAnyBrowser.SetCost(new BaseCost(0)); programAnyBrowser.GetEffect().Set("Program", "Any"); programAnyBrowser.GetPreconditions().Add("Program", "Browser"); programAnyRules.SetCost(new BaseCost(0)); programAnyRules.GetEffect().Set("Program", "Any"); programAnyRules.GetPreconditions().Add("Program", "Rules"); programAnyText.SetCost(new BaseCost(0)); programAnyText.GetEffect().Set("Program", "Any"); programAnyText.GetPreconditions().Add("Program", "Text"); programAnyTest.SetCost(new BaseCost(0)); programAnyTest.GetEffect().Set("Program", "Any"); programAnyTest.GetPreconditions().Add("Program", "Test"); programAnyCode.SetCost(new BaseCost(0)); programAnyCode.GetEffect().Set("Program", "Any"); programAnyCode.GetPreconditions().Add("Program", "Code"); }
private static void CreateBasic() { basicComputer.SetCost(new BaseCost(0)); basicComputer.GetEffect().Set("Basic", "Computer"); basicComputer.GetPreconditions().Add("Location", "Desk"); basicComputer.GetPreconditions().Add("Program", "Allowed"); basicItem.SetCost(new BaseCost(0)); basicItem.GetEffect().Set("Basic", "Item"); basicItem.GetPreconditions().Add("Location", "Desk"); basicItem.GetPreconditions().Add("Item", "Allowed"); basicThink.SetCost(new BaseCost(0)); basicThink.GetEffect().Set("Basic", "Think"); basicThink.GetPreconditions().Add("Location", "Desk"); basicThink.GetPreconditions().Add("Think", true); }
private static void CreateGoToProhibit() { goToProhibitToilet.SetCost(new BaseCost(0)); goToProhibitToilet.GetEffect().Set("Location", "Prohibited"); goToProhibitToilet.GetPreconditions().Add("Place_Toilet_Allowed", false); goToProhibitToilet.GetPreconditions().Add("Location", "Toilet"); goToProhibitSink.SetCost(new BaseCost(0)); goToProhibitSink.GetEffect().Set("Location", "Prohibited"); goToProhibitSink.GetPreconditions().Add("Place_Sink_Allowed", false); goToProhibitSink.GetPreconditions().Add("Location", "Sink"); goToProhibitHallway.SetCost(new BaseCost(0)); goToProhibitHallway.GetEffect().Set("Location", "Prohibited"); goToProhibitHallway.GetPreconditions().Add("Place_Hallway_Allowed", false); goToProhibitHallway.GetPreconditions().Add("Location", "Hallway"); }
private static void CreateDistractionAny() { distractionAnyComputer.SetCost(new BaseCost(0)); distractionAnyComputer.GetEffect().Set("Distraction", "Any"); distractionAnyComputer.GetPreconditions().Add("Distraction", "Computer"); distractionAnyRest.SetCost(new BaseCost(0)); distractionAnyRest.GetEffect().Set("Distraction", "Any"); distractionAnyRest.GetPreconditions().Add("Distraction", "Rest"); }
private static void CreateGoToAllow() { goToAllowToilet.SetCost(new BaseCost(0)); goToAllowToilet.GetEffect().Set("Location", "Allowed"); goToAllowToilet.GetPreconditions().Add("Place_Toilet_Allowed", true); goToAllowToilet.GetPreconditions().Add("Location", "Toilet"); goToAllowSink.SetCost(new BaseCost(0)); goToAllowSink.GetEffect().Set("Location", "Allowed"); goToAllowSink.GetPreconditions().Add("Place_Sink_Allowed", true); goToAllowSink.GetPreconditions().Add("Location", "Sink"); goToAllowHallway.SetCost(new BaseCost(0)); goToAllowHallway.GetEffect().Set("Location", "Allowed"); goToAllowHallway.GetPreconditions().Add("Place_Hallway_Allowed", true); goToAllowHallway.GetPreconditions().Add("Location", "Hallway"); goToAllowDesk.SetCost(new BaseCost(0)); goToAllowDesk.GetEffect().Set("Location", "Allowed"); goToAllowDesk.GetPreconditions().Add("Location", "Desk"); }
private static void CreateDistractionSpecial() { distractionRestPee.SetCost(new BaseCost(0)); distractionRestPee.GetEffect().Set("Distraction", "Rest"); distractionRestPee.GetPreconditions().Add("Place_Toilet_Allowed", true); distractionRestPee.GetPreconditions().Add("Location", "Toilet"); distractionRestPee.GetPreconditions().Add("Pee", true); distractionRestWashHands.SetCost(new BaseCost(0)); distractionRestWashHands.GetEffect().Set("Distraction", "Rest"); distractionRestWashHands.GetPreconditions().Add("Place_Sink_Allowed", true); distractionRestWashHands.GetPreconditions().Add("Location", "Sink"); distractionRestWashHands.GetPreconditions().Add("WashHands", true); distractionRestAir.SetCost(new BaseCost(0)); distractionRestAir.GetEffect().Set("Distraction", "Rest"); distractionRestAir.GetPreconditions().Add("Place_Hallway_Allowed", true); distractionRestAir.GetPreconditions().Add("Location", "Hallway"); distractionRestAir.GetPreconditions().Add("Rest", true); }
private static void CreateBasicAny() { basicAnyComputer.SetCost(new BaseCost(0)); basicAnyComputer.GetEffect().Set("Basic", "Any"); basicAnyComputer.GetPreconditions().Add("Basic", "Computer"); basicAnyItem.SetCost(new BaseCost(0)); basicAnyItem.GetEffect().Set("Basic", "Any"); basicAnyItem.GetPreconditions().Add("Basic", "Item"); basicAnyThink.SetCost(new BaseCost(0)); basicAnyThink.GetEffect().Set("Basic", "Any"); basicAnyThink.GetPreconditions().Add("Basic", "Think"); }
private static void CreateProgramAllow() { programAllowCalculator.SetCost(new BaseCost(0)); programAllowCalculator.GetEffect().Set("Program", "Allowed"); programAllowCalculator.GetPreconditions().Add("Program_Calculator_Allowed", true); programAllowCalculator.GetPreconditions().Add("Program", "Calculator"); programAllowDictionary.SetCost(new BaseCost(0)); programAllowDictionary.GetEffect().Set("Program", "Allowed"); programAllowDictionary.GetPreconditions().Add("Program_Dictionary_Allowed", true); programAllowDictionary.GetPreconditions().Add("Program", "Dictionary"); programAllowBrowser.SetCost(new BaseCost(0)); programAllowBrowser.GetEffect().Set("Program", "Allowed"); programAllowBrowser.GetPreconditions().Add("Program_Browser_Allowed", true); programAllowBrowser.GetPreconditions().Add("Program", "Browser"); programAllowRules.SetCost(new BaseCost(0)); programAllowRules.GetEffect().Set("Program", "Allowed"); programAllowRules.GetPreconditions().Add("Program_Rules_Allowed", true); programAllowRules.GetPreconditions().Add("Program", "Rules"); programAllowText.SetCost(new BaseCost(0)); programAllowText.GetEffect().Set("Program", "Allowed"); programAllowText.GetPreconditions().Add("Program_Text_Allowed", true); programAllowText.GetPreconditions().Add("Program", "Text"); programAllowTest.SetCost(new BaseCost(0)); programAllowTest.GetEffect().Set("Program", "Allowed"); programAllowTest.GetPreconditions().Add("Program_Test_Allowed", true); programAllowTest.GetPreconditions().Add("Program", "Test"); programAllowCode.SetCost(new BaseCost(0)); programAllowCode.GetEffect().Set("Program", "Allowed"); programAllowCode.GetPreconditions().Add("Program_Code_Allowed", true); programAllowCode.GetPreconditions().Add("Program", "Code"); }
private static void CreateGoToAny() { goToAnyToilet.SetCost(new BaseCost(0)); goToAnyToilet.GetEffect().Set("Location", "Any"); goToAnyToilet.GetPreconditions().Add("Location", "Toilet"); goToAnySink.SetCost(new BaseCost(0)); goToAnySink.GetEffect().Set("Location", "Any"); goToAnySink.GetPreconditions().Add("Location", "Sink"); goToAnyHallway.SetCost(new BaseCost(0)); goToAnyHallway.GetEffect().Set("Location", "Any"); goToAnyHallway.GetPreconditions().Add("Location", "Hallway"); goToAnyDesk.SetCost(new BaseCost(0)); goToAnyDesk.GetEffect().Set("Location", "Any"); goToAnyDesk.GetPreconditions().Add("Location", "Desk"); }
private static void CreateGoTo() { goToToilet.SetCost(new BaseCost(10)); goToToilet.GetEffect().Set("Location", "Toilet"); goToToilet.GetPreconditions().Add("Place_Toilet_All_Busy", false); goToSink.SetCost(new BaseCost(10)); goToSink.GetEffect().Set("Location", "Sink"); goToSink.GetPreconditions().Add("Place_Sink_All_Busy", false); goToHallway.SetCost(new BaseCost(10)); goToHallway.GetEffect().Set("Location", "Hallway"); goToHallway.GetPreconditions().Add("Place_Hallway_All_Busy", false); goToDesk.SetCost(new BaseCost(10)); goToDesk.GetEffect().Set("Location", "Desk"); goToDockStation.SetCost(new BaseCost(10)); goToDockStation.GetEffect().Set("Location", "DockStation"); }
private static void CreateItemAny() { itemAnyPhone.SetCost(new BaseCost(0)); itemAnyPhone.GetEffect().Set("Item", "Any"); itemAnyPhone.GetPreconditions().Add("Item", "Phone"); }
private static void CreateItem() { itemPhone.SetCost(new BaseCost(10)); itemPhone.GetEffect().Set("Item", "Phone"); itemPhone.GetPreconditions().Add("Item_Phone_Have", true); }