PathfindingTest.UI.HUDObject.HUDObject C# (CSharp) Method

HUDObject() public method

public HUDObject ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Type type, float x, float y, Color color ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
type System.Type
x float
y float
color Color
return System
        public HUDObject(Texture2D texture, Type type, float x, float y, Color color)
        {
            this.texture = texture;
            this.type = type;
            this.x = x;
            this.y = y;
            this.color = color;
            this.details = Game1.GetInstance().Content.Load<Texture2D>("HUD/HUDItemDetails");
            this.sf = Game1.GetInstance().Content.Load<SpriteFont>("Fonts/HUDDetails");

            this.detailString = this.DefineDetailString();
            this.costString = this.DefineCostString();
        }