private double startTime; //normalized. eg. 1.5 means 1.30am, 14.25 means 2.15pm, etc #endregion Fields #region Constructors //public readonly SuspectEnum person; //probably not needed as its stored in person alr public TimelineSlot(double start, RmEnum p, string a, WpnEnum wpn/*, SuspectEnum s*/) { startTime = start; endTime = start + 1; place = p; activity = a; weapon = wpn; // person = s; }
public Fact(RmEnum rm, TimelineSlot ts, SuspectEnum personn) { placeRevealed = rm; info = ts; person = personn; }
public void setBeforeMurder(double start, RmEnum p, string activity, WpnEnum w) { truthTimeline.Insert(0, new TimelineSlot(start, p, activity, w)); }
public void setFakeDuringMurder(double start, RmEnum p, string activity, WpnEnum w) { falseTimeline.Insert(1, new TimelineSlot(start, p, activity, w)); }
private static void placeWeapon(WpnEnum w, RmEnum r) { switch (w) { case WpnEnum.Knife: knifeLoc = r; break; case WpnEnum.Scissors: scissorsLoc = r; break; case WpnEnum.Screwdriver: screwdriverLoc = r; break; case WpnEnum.Spanner: spannerLoc = r; break; case WpnEnum.Towel: towelLoc = r; break; } }
private static void initializeWeaponLocations() { knifeLoc = RmEnum.Kitchen; screwdriverLoc = RmEnum.Living_Room; towelLoc = RmEnum.Toilet_in_Master_Bedroom; scissorsLoc = RmEnum.Master_Bedroom; spannerLoc = RmEnum.Garden; }
void showStain(RmEnum room) { switch(room) { case RmEnum.Kitchen: stainKitchen.renderer.enabled = true; handprintKitchen.renderer.enabled = true; break; case RmEnum.Living_Room: stainLivingRoom.renderer.enabled = true; handprintLivingRoom.renderer.enabled = true; break; case RmEnum.Master_Bedroom: stainMasterBedroom.renderer.enabled = true; handprintMasterBedroom.renderer.enabled = true; break; case RmEnum.Garden: stainGarden.renderer.enabled = true; handprintGarden.renderer.enabled = true; break; case RmEnum.Toilet_in_Master_Bedroom: stainMasterToilet.renderer.enabled = true; handprintMasterToilet.renderer.enabled = true; break; default: break; } }
public static RmEnum randRoom(RmEnum a, RmEnum b, RmEnum c) { //return a room different from a, b and c System.Random r = new System.Random(); RmEnum toReturn; do { toReturn = (RmEnum) r.Next(0, Globals.numRooms); } while( toReturn==a || toReturn==b || toReturn == c); return toReturn; }
public static RmEnum randRoom(RmEnum rm) { //return a room different from rm System.Random r = new System.Random(); RmEnum toReturn; do { toReturn = (RmEnum)r.Next(0, numRooms); } while (toReturn == rm); return toReturn; }