Exemple #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
            Game game = new BoxGame();

            game.Start();
        }
Exemple #2
0
 public EditorUI(BoxGame boxGame)
     : this()
 {
     this.showMapUI.BoxGame = boxGame;
     this.seStage.Value     = this.BoxGame.Stage;
 }
Exemple #3
0
 public ShowMapDesignUI(BoxGame boxGame)
     : base(boxGame)
 {
 }
Exemple #4
0
 public ShowMapUI(BoxGame boxGame)
     : this()
 {
     this.boxGame = boxGame;
 }
Exemple #5
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
     Game game = new BoxGame();
     game.Start();
 }
 protected void BoxSystemGuessEventFilter(BoxGame.GuessEvent data)
 {
     var BoxItems = BoxManager.Components;
     for (var BoxIndex = 0
     ; BoxIndex < BoxItems.Count; BoxIndex++
     ) {
         this.BoxSystemGuessEventHandler(data, BoxItems[BoxIndex]);
     }
 }
 protected void BoxSystemGuessEventHandler(BoxGame.GuessEvent data, Box group)
 {
     var handler = BoxSystemGuessEventHandlerInstance;;
     handler.System = this;
     handler.Event = data;
     handler.Group = group;
     handler.Execute();
 }
 protected void PerformGuessFilter(BoxGame.GuessEvent data)
 {
     var GuessLabelItems = GuessLabelManager.Components;
     for (var GuessLabelIndex = 0
     ; GuessLabelIndex < GuessLabelItems.Count; GuessLabelIndex++
     ) {
         this.PerformGuessHandler(data, GuessLabelItems[GuessLabelIndex]);
     }
 }
 protected void PerformGuessHandler(BoxGame.GuessEvent data, GuessLabel group)
 {
     var handler = PerformGuessHandlerInstance;;
     handler.System = this;
     handler.Event = data;
     handler.Group = group;
     handler.Execute();
 }
 protected void NumberGuessSystemHigherEventHandler(BoxGame.HigherEvent data)
 {
     var handler = NumberGuessSystemHigherEventHandlerInstance;;
     handler.System = this;
     handler.Event = data;
     handler.Execute();
 }
 protected void NumberGuessSystemHigherEventFilter(BoxGame.HigherEvent data)
 {
     this.NumberGuessSystemHigherEventHandler(data);
 }
 protected void GuessedLowerHandler(BoxGame.LowerEvent data, GuessLabel group)
 {
     var handler = GuessedLowerHandlerInstance;;
     handler.System = this;
     handler.Event = data;
     handler.Group = group;
     handler.Execute();
 }
 protected void GuessedLowerFilter(BoxGame.LowerEvent data)
 {
     var GuessLabelItems = GuessLabelManager.Components;
     for (var GuessLabelIndex = 0
     ; GuessLabelIndex < GuessLabelItems.Count; GuessLabelIndex++
     ) {
         this.GuessedLowerHandler(data, GuessLabelItems[GuessLabelIndex]);
     }
 }
Exemple #14
0
 public EditorFrm(BoxGame boxGame)
     : this()
 {
     this.editorUI.BoxGame = boxGame;
 }