C# Class Descent.GUI.SubElements.EquipmentElement

Displays a single Equipment to the screen.
Inheritance: GUIElement
Show file Open project: nezbo/Descent Class Usage Examples

Private Properties

Property Type Description
GetBGString string
PopulateItem void

Public Methods

Method Description
EquipmentElement ( Microsoft.Xna.Framework.Game game, int posX, int posY, int width, int height, string slotTitle, Equipment eq, int id ) : System.Collections.Generic

Creates a new Equipment element to display the given Equipment at the given position.

HandleClick ( int x, int y ) : bool

Private Methods

Method Description
GetBGString ( ) : string
PopulateItem ( ) : void

Method Details

EquipmentElement() public method

Creates a new Equipment element to display the given Equipment at the given position.
public EquipmentElement ( Microsoft.Xna.Framework.Game game, int posX, int posY, int width, int height, string slotTitle, Equipment eq, int id ) : System.Collections.Generic
game Microsoft.Xna.Framework.Game The current Game object.
posX int The top-left x-coordinate of this element.
posY int The top-left y-coordinate of this element.
width int The width of this element.
height int The height of this element.
slotTitle string The title of this slot, in case the Equipment isn't there (null).
eq Descent.Model.Player.Figure.HeroStuff.Equipment The Equipment to visualize.
id int The Id of the given Equipment.
return System.Collections.Generic

HandleClick() public method

public HandleClick ( int x, int y ) : bool
x int
y int
return bool