Inheritance: MovingObject
Beispiel #1
0
        public HUDManager(Ship pPlayerShip)
        {
            var overlay = OverlayManager.Instance.Create("Overlay");

            // Create HUD elements.
            upgradeHUD = new UpgradeHUD(pPlayerShip, overlay);

            PopulateHUDPanels();
        }
Beispiel #2
0
 protected Gun(Ship pOwner)
 {
     Owner = pOwner;
 }
Beispiel #3
0
        private Dictionary<Int32, List<UpgradeGroup.Upgrade>> upgradesByCost; // Used for displaying indicator dots.

        #endregion Fields

        #region Constructors

        public UpgradeHUD(Ship pPlayerShip, Overlay pOverlay)
        {
            // Initialize local variables.
            playerShip = pPlayerShip;
            overlay = pOverlay;
            inSelectionMode = false;
            selectedUpgrade = 0;
            upgradesByCost = new Dictionary<int, List<UpgradeGroup.Upgrade>>();
            upgradePanelsByCost = new Dictionary<int, List<BorderPanel>>();
            costSelectorPanels = new Dictionary<int, BorderPanel>();

            // Create the upgrade panel.
            masterUpgradePanel = new PanelFactory().Create("Upgrade Panel") as Panel;
        }
Beispiel #4
0
 public Cannon(Ship pOwner)
     : base(pOwner)
 {
     FireQueue = new List<Bullet>(16);
     GunIndexQueue = new List<Int32>(16);
 }
Beispiel #5
0
 public void AddShip(Ship pShip)
 {
     Ships.Add(pShip);
 }
Beispiel #6
0
 public void Initialize()
 {
     PlayerShip = new Ship(SceneManager, new PlayerController());
     HUD = new HUDManager(PlayerShip);
 }