Example #1
3
        public PlanetViewer(Planet planet, OpenView openViewDelegate)
        {
            this.openViewDelegate = openViewDelegate;

            this.planet = planet;
            this.planet.Moved += new MovedEventHandler(planet_Moved);
            this.planet.Changed += new ChangedEventHandler(planet_Changed);

            InitializeComponent();

            planet_Changed(planet);
            planet_Moved(planet);
        }
Example #2
0
        public PlanetSystemViewer(PlanetSystem planetSystem, OpenView openViewDelegate)
        {
            this.openViewDelegate = openViewDelegate;

            this.planetSystem        = planetSystem;
            this.planetSystem.Moved += new MovedEventHandler(planetSystem_Moved);

            InitializeComponent();

            planetSystem_Moved(planetSystem);
        }
        public PlanetSystemViewer(PlanetSystem planetSystem, OpenView openViewDelegate)
        {
            this.openViewDelegate = openViewDelegate;

            this.planetSystem = planetSystem;
            this.planetSystem.Moved += new MovedEventHandler(planetSystem_Moved);

            InitializeComponent();

            planetSystem_Moved(planetSystem);
        }
Example #4
0
 public static void UnAssignAllEvents()
 {
     OnOpenView          = null;
     OnCloseView         = null;
     OnBackButtonPressed = null;
     OnChangeSound       = null;
     OnStartGame         = null;
     OnPauseGame         = null;
     OnShootBubble       = null;
     OnAllowShoot        = null;
 }
Example #5
0
 public override void EnterState()
 {
     openView = stateController.AppViews.OpenView;
     openView.OnSaveChosen += LoadChosenSaveFile;
     openView.OnBackButton += BackToMenu;
     foreach (var saveFile in SaveController.Instance.SaveDataCollection.saveDataList)
     {
         openView.SetupGridButton(saveFile.id);
     }
     openView.SubscribeButtonActions();
     openView.DisplayView(true);
 }
        public PlanetViewer(Planet planet, OpenView openViewDelegate)
        {
            this.openViewDelegate = openViewDelegate;

            this.planet          = planet;
            this.planet.Moved   += new MovedEventHandler(planet_Moved);
            this.planet.Changed += new ChangedEventHandler(planet_Changed);

            InitializeComponent();

            planet_Changed(planet);
            planet_Moved(planet);
        }