DodongosQuest.Screens.Gameplay.SideBar.SideBar C# (CSharp) Method

SideBar() public method

public SideBar ( Vector2 position, PlayerCharacter &player ) : System
position Vector2
player DodongosQuest.Creatures.Player.PlayerCharacter
return System
        public SideBar(Vector2 position, ref PlayerCharacter player)
        {
            _position = position;
            _backgroundImage = ContentHelper.Content.Load<Texture2D>("SideBarBackground");
            _player = player;
            //_font = ContentHelper.Content.Load<SpriteFont>("MessageBoxFont");
            _font = ContentHelper.Content.Load<SpriteFont>("arial");
            _playerHitPointsPosition = new Vector2(position.X + 3, position.Y + 3);
            _playerManaPosition = new Vector2(position.X + 3, position.Y + 23);
            _width = _backgroundImage.Width;
            _height = _backgroundImage.Height;
        }