Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public PlanetSystemViewer(PlanetSystem planetSystem, OpenView openViewDelegate)
        {
            this.openViewDelegate = openViewDelegate;

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

            InitializeComponent();

            planetSystem_Moved(planetSystem);
        }
Ejemplo n.º 4
0
 public static void UnAssignAllEvents()
 {
     OnOpenView          = null;
     OnCloseView         = null;
     OnBackButtonPressed = null;
     OnChangeSound       = null;
     OnStartGame         = null;
     OnPauseGame         = null;
     OnShootBubble       = null;
     OnAllowShoot        = null;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
        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);
        }