public BattleScreenPlayer(String textureFile, BattleScreen owner) : base(textureFile, owner) { maxHP = 100; currentHP = 100; //TextureFileName = "tempface"; NameText = "Bill"; OwnerScreen = owner; IsPlayer = true; IsPlayerCharacter = true; combatActions = new CombatAction[4]; Position = new Vector2(200, 200); InitializeCombatActions(); font = OwnerScreen.ScreenManager.Font; actionMenu = new RectangleOverlay(new Rectangle( 350, OwnerScreen.ScreenManager.GraphicsDevice.Viewport.Height - 100, 115, 100), OwnerScreen); combatActions[0].Selected += CombatActionAttackSelected; combatActions[1].Selected += CombatActionHealSelected; }
public BattleScreenPlayer(String textureFile, BattleScreen owner) : base(textureFile, owner) { maxHP = PlayerStats.MaximumEnergy; currentHP = PlayerStats.CurrentEnergy; strength = PlayerStats.Strength; defense = PlayerStats.Defense; NameText = "Bill"; OwnerScreen = owner; IsPlayer = true; IsPlayerCharacter = true; combatActions = new CombatAction[4]; Position = new Vector2(200, 200); InitializeCombatActions(); font = OwnerScreen.ScreenManager.Font; actionMenu = new RectangleOverlay(new Rectangle( 350, OwnerScreen.ScreenManager.GraphicsDevice.Viewport.Height - 100, 115, 100), OwnerScreen); combatActions[0].Selected += CombatActionAttackSelected; combatActions[1].Selected += CombatActionHealSelected; drawBox = new Rectangle(0, 0, 40, 40); }
// Huehuehahuehauueha. public BattleUI(BattleScreen owner) { battleScreen = owner; mainHUD = new RectangleOverlay(new Rectangle( 0, battleScreen.ScreenManager.GraphicsDevice.Viewport.Height - 100, battleScreen.ScreenManager.GraphicsDevice.Viewport.Width, 100), battleScreen); }
public override void LoadContent() { ContentManager content = new ContentManager(ScreenManager.Game.Services, "Content"); bill = content.Load<Texture2D>("bill"); laptop = content.Load<Texture2D>("laptop"); // Load item icons here. temp_item = content.Load<Texture2D>("inv_items/energy_drink_icon"); // overlay_background = new RectangleOverlay(new Rectangle(0, 0, GlobalConstants.ScreenWidth, GlobalConstants.ScreenHeight), this); top = new RectangleOverlay(new Rectangle(6, 6, GlobalConstants.ScreenWidth - 12, GlobalConstants.ScreenHeight - 360), this); bot = new RectangleOverlay(new Rectangle(6, GlobalConstants.ScreenHeight - 351, GlobalConstants.ScreenWidth - 12, 345), this); overlay_background.LoadContent(); top.LoadContent(); bot.LoadContent(); // energyBar_Bill = new StatBar(new Rectangle(120, 12, 140, 20), this, true); energyBar_Bill.LoadContent(); energyBarPos_Bill = new Vector2(120, 33); expBar_Bill = new StatBar(new Rectangle(120, 55, 140, 20), this, false); expBar_Bill.LoadContent(); expBarPos_Bill = new Vector2(120, 76); facePos_Bill = new Vector2(12, 12); levelPos_Bill = new Vector2(facePos_Bill.X, facePos_Bill.Y + 95); strdefPos_Bill = new Vector2(); // energyBar_Laptop = new StatBar(new Rectangle(488, 12, 140, 20), this, true); energyBar_Laptop.LoadContent(); energyBarPos_Laptop = new Vector2(488, 33); expBar_Laptop = new StatBar(new Rectangle(488, 55, 140, 20), this, false); expBar_Laptop.LoadContent(); expBarPos_Laptop = new Vector2(488, 76); facePos_Laptop = new Vector2(380, 12); levelPos_Laptop = new Vector2(facePos_Bill.X, facePos_Bill.Y + 95); strdefPos_Laptop = new Vector2(); // selectedItem = 0; itemPosition = new Vector2(12, GlobalConstants.ScreenHeight - 339); itemDescriptionPosition = new Vector2(itemPosition.X + temp_item.Width + 10, itemPosition.Y); // }