public void setLabInfoWithName(LabScene name) { labName = name; switch (name) { case LabScene.Lab0_tap_5_5: setParams(Lab0_tap_55.totalBlockCount, Lab0_tap_55.fullTrialCount, Lab0_tap_55.repetitionCount, Lab0_tap_55.s1PositionCount, Lab0_tap_55.s2PositionCount, Enum.GetNames(typeof(Lab0_tap_55.Posture)).Length, Lab0_tap_55.AngleBetweenScreens.Length, Enum.GetNames(typeof(Lab0_tap_55.Orientation)).Length); break; case LabScene.Lab1_tap_33_33: setParams(Lab1_tap_99.totalBlockCount, Lab1_tap_99.fullTrialCount, Lab1_tap_99.repetitionCount, Lab1_tap_99.s1PositionCount, Lab1_tap_99.s2PositionCount, Lab1_tap_99.s1ColumnCount, Lab1_tap_99.s1RowCount, Lab1_tap_99.s2ColumnCount, Lab1_tap_99.s2RowCount, Enum.GetNames(typeof(Lab1_tap_99.Posture)).Length, Lab1_tap_99.AngleBetweenScreens.Length, Enum.GetNames(typeof(Lab1_tap_99.Orientation)).Length); break; case LabScene.Lab2_tap_57_57: setParams(Lab2_tap_3535.totalBlockCount, Lab2_tap_3535.totalTrialCount, Lab2_tap_3535.s1ColumnCount, Lab2_tap_3535.s1RowCount, Lab2_tap_3535.s2ColumnCount, Lab2_tap_3535.s2RowCount, Lab2_tap_3535.repetitionCount, Lab2_tap_3535.s1PositionCount, Lab2_tap_3535.s2PositionCount, 5, 6, 2); break; default: break; } }
public UseWork(LabScene labScene, ConcourseScene concourseScene, CapsuleItem capsuleItem, WindowItem windowItem) { this.labScene = labScene; this.concourseScene = concourseScene; this.capsuleItem = capsuleItem; this.windowItem = windowItem; }
public void setLabInfo(LabScene name, bool isFullMode) { bool finished = GlobalController.Instance.setLabParams(name, isFullMode); if (finished) { GlobalController.Instance.writeAllBlockConditionsToFile(); } else { Debug.Log("Do not finish Func:writeAllBlockConditionsToFile()"); } }
static Scene BuildScenes(GameManager gameManager) { Scene controlRoom = new StaticScene("Control Room", "The radio sits silently at the front. The grand window stares out into the darkness of space. To the south is the Lab."); ConcourseScene concourse = new ConcourseScene(); StadiumScene stadium = new StadiumScene(gameManager); DynamicScene storage = new DynamicScene("Storage", "Contains a rope hung by a hook from its wall. The Lab is to the east."); RopeItem ropeItem = new RopeItem(storage, concourse, stadium); LabScene lab = new LabScene("Lab", "Four capsules made of glass sit at the side.", "A lectern with buttons stands at the center. To the north is the Control Room.", ropeItem); Scene hall = new StaticScene("Hall", "East leads to the Concourse. South leads to the Lab."); concourse.SetDescription("A large room with multiple tables like a banquet hall. One wall scorched by the bright lights displays space across its massive window. The Hall is to the west."); #region Episodes #endregion #region Directions controlRoom.AddWork(new RoamWork(new string[] { RoamWork.South, "LAB" }, lab)); lab.AddWork(new RoamWork(new string[] { RoamWork.North, "CONTROL", "CONTROL ROOM" }, controlRoom)); lab.AddWork(new RoamWork(new string[] { RoamWork.East, "HALL" }, hall)); lab.AddWork(new RoamWork(new string[] { RoamWork.West, "STORAGE" }, storage)); storage.AddWork(new RoamWork(new string[] { RoamWork.East, "LAB" }, lab)); hall.AddWork(new RoamWork(new string[] { RoamWork.West, "LAB" }, lab)); hall.AddWork(new RoamWork(new string[] { RoamWork.East, "CONCOURSE" }, concourse)); concourse.AddWork(new RoamWork(new string[] { RoamWork.West, "HALL" }, hall)); // TEST //controlRoom.AddWork(new RoamWork(new string[] { "TEST" }, stadium)); #endregion #region Items controlRoom.AddItem(new RadioItem()); controlRoom.AddItem(new WindowItem { Description = "The window stares out into the vastness of space. The stars glitter in their reds, blues, and whites." }); { CapsuleItem capsuleItem = new CapsuleItem { Description = "Four empty capsules sit against the wall." }; WindowItem windowItem = new WindowItem { Description = "The stars from here are barely visible to the naked eye because of the sharp lights within the Concourse." }; lab.AddItem(capsuleItem); lab.AddItem(new LecternItem(lab, concourse, capsuleItem, windowItem)); concourse.AddItem(windowItem); } storage.AddItem(new HookItem()); storage.AddItem(ropeItem); #endregion return(controlRoom); }
public bool setLabParams(LabScene name, bool isFullMode) { curLabInfos = new LabInfos(); curLabInfos.setLabInfoWithName(name); curLabInfos.setTotalTrialCount(isFullMode); bool end = scheduleBlocks(); if (end) { return(true); } return(false); }
private void Awake() { if (Instance == null) { DontDestroyOnLoad(gameObject); Instance = this; curServerScene = LabScene.Entry_scene; curClientScene = LabScene.Entry_scene; curBlockid = trial_start_index; curEntryPhase = WelcomePhase.in_entry_scene; isUserLabInfoSet = false; } else if (Instance != null) { Destroy(gameObject); } }
public void ConfirmUserAndLabInfo() { bool flag = GlobalController.Instance.getConnectionStatus(); if (flag) { // user info int userid = int.Parse(inputUserid.text); phaseController.GetComponent <enPhaseController>().setUserid(userid); // lab info int labid = dpLabOptions.value + 1; LabScene labName = (LabScene)labid; phaseController.GetComponent <enPhaseController>().setLabInfo(labName, tgLabMode.isOn); // move to next phase phaseController.GetComponent <enPhaseController>().moveToPhase(WelcomePhase.set_target_lab); } }
public void setBlockLength(LabScene name) { labName = name; switch (name) { case LabScene.Lab0_tap_5_5: lenBlock = Lab0_tap_55.totalBlockCount; break; case LabScene.Lab1_tap_33_33: lenBlock = Lab1_tap_99.totalBlockCount; break; case LabScene.Lab2_tap_57_57: lenBlock = Lab2_tap_3535.totalBlockCount; break; } seqPosture = new ArrayList(); seqAngle = new ArrayList(); seqShape = new ArrayList(); seqOrientation = new ArrayList(); seqTargetSize = new ArrayList(); }
public void setLabName(string name) { targetLabName = (LabScene)Enum.Parse(typeof(LabScene), name); }
public LecternItem(LabScene labScene, ConcourseScene concourseScene, CapsuleItem capsuleItem, WindowItem windowItem) { useWork = new UseWork(labScene, concourseScene, capsuleItem, windowItem); examineWork = new ExamineWork(this); }