Esempio n. 1
0
        public void LoadCommands()
        {
            commandObjects = new LinkedList<HUDCommandObject>();
            startCommandX = 673;
            startCommandY = 688;

            HUDCommandObject repairCommand = new HUDCommandObject(Game1.GetInstance().Content.Load<Texture2D>("HUD/Commands/HUDRepair"), HUDCommandObject.Type.Repair, startCommandX, startCommandY, new Color(255, 187, 0, 255));
            commandObjects.AddLast(repairCommand);
            IncrementStartCommandXY(startCommandX);
        }
Esempio n. 2
0
        private void LoadCommands()
        {
            commandObjects = new CustomArrayList<HUDCommandObject>();
            startCommandX = 673;
            startCommandY = 688;

            //No more than 8 seperate Commands!!!
            moveCommand = new HUDCommandObject(TextureManager.GetInstance().GetTexture(HUDCommandObject.Type.Move), HUDCommandObject.Type.Move, startCommandX, startCommandY, new Color(0, 100, 255, 255), this.color);
            commandObjects.AddLast(moveCommand);
            IncrementStartCommandXY(startCommandX);

            attackCommand = new HUDCommandObject(TextureManager.GetInstance().GetTexture(HUDCommandObject.Type.Attack), HUDCommandObject.Type.Attack, startCommandX, startCommandY, new Color(255, 0, 12, 255), this.color);
            commandObjects.AddLast(attackCommand);
            IncrementStartCommandXY(startCommandX);

            defendCommand = new HUDCommandObject(TextureManager.GetInstance().GetTexture(HUDCommandObject.Type.Defend), HUDCommandObject.Type.Defend, startCommandX, startCommandY, new Color(255, 125, 0, 255), this.color);
            commandObjects.AddLast(defendCommand);
            IncrementStartCommandXY(startCommandX);

            stopCommand = new HUDCommandObject(TextureManager.GetInstance().GetTexture(HUDCommandObject.Type.Stop), HUDCommandObject.Type.Stop, startCommandX, startCommandY, new Color(255, 0, 0, 255), this.color);
            commandObjects.AddLast(stopCommand);
            IncrementStartCommandXY(startCommandX);

            repairCommand = new HUDCommandObject(TextureManager.GetInstance().GetTexture(HUDCommandObject.Type.Repair), HUDCommandObject.Type.Repair, startCommandX, startCommandY, new Color(255, 187, 0, 255), this.color);
            commandObjects.AddLast(repairCommand);
            IncrementStartCommandXY(startCommandX);
        }