private static Behaviour ShowDialog(string content) { MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen"); return((activator, self) => { mainPlayScreen.timer.Stop(); mainPlayScreen.msgbox.Show(content.ProcessAnnotation()); mainPlayScreen.gameStates.Push(GameState.ShowDialog); }); }
private static Behaviour ExitGame() { MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen"); return((a, s) => { mainPlayScreen.isExit = true; mainPlayScreen.CurrentGameState = GameState.Exit; mainPlayScreen.msgbox.Show("Exitting game.", "OK"); }); }
private static Behaviour Win(string nextlvl = null) { MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen"); return((activator, self) => { mainPlayScreen.isWin = true; if (!string.IsNullOrEmpty(nextlvl)) { mainPlayScreen.isBehaviourChangeMap = true; mainPlayScreen.MapName = nextlvl; } }); }
private static Behaviour ShowDialog() { MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen"); return((activator, self) => { if (self.Memory.Count == 0) { return; } mainPlayScreen.timer.Stop(); var content = self.Memory.Pop(); mainPlayScreen.msgbox.Show(content.ProcessAnnotation()); mainPlayScreen.gameStates.Push(GameState.ShowDialog); }); }