/// <summary> /// main constructor /// </summary> /// <param name="font">SpriteFont for the Messages to use</param> /// <param name="inventory">inventory to be drawn</param> /// <param name="scoreXY">scoreDisplay position vector</param> /// <param name="screenSize">current screen size vector</param> /// <param name="timerXY">timerDisplay position vector</param> private HUD(Vector2 timerXY, Vector2 scoreXY, SpriteFont font, Inventory inventory, Vector2 screenSize) { this.inventory = inventory; this.font = font; this.screenSize = screenSize; timerDisplay = new Message("Current Time: ", timerXY, font); scoreDisplay = new Message("Score: ", scoreXY, font); }
public void setInventory(Inventory inventory) { this.inventory = inventory; }