C# Class RTS_Builder.HUD

Inheritance: MouseClickListener
Exibir arquivo Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Public Properties

Property Type Description
instance HUD

Public Methods

Method Description
CheckDraw ( ) : void
CountUnits ( ) : void

Count the different unit types selected. Determines how the HUD should be loaded.

DefineBarracksRectangle ( ) : Rectangle
DefineDetailsRectangle ( ) : Rectangle
DefineFactoryRectangle ( ) : Rectangle
DefineFortressRectangle ( ) : Rectangle
DefineRectangle ( ) : Rectangle
DefineResourcesRectangle ( ) : Rectangle
GetInstance ( ) : HUD
HUD ( RTS_Builder.Player p, Color c ) : System

HUD Constructor.

Update ( KeyboardState ks, Microsoft.Xna.Framework.Input.MouseState ms ) : void

Standard Update function.

Private Methods

Method Description
Draw ( SpriteBatch sb ) : void

Checks if the HUD should be drawn. If an Engineer is selected, load contents for Engineer.

MouseClickListener ( MouseEvent me ) : void

Method Details

CheckDraw() public method

public CheckDraw ( ) : void
return void

CountUnits() public method

Count the different unit types selected. Determines how the HUD should be loaded.
public CountUnits ( ) : void
return void

DefineBarracksRectangle() public method

public DefineBarracksRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

DefineDetailsRectangle() public method

public DefineDetailsRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

DefineFactoryRectangle() public method

public DefineFactoryRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

DefineFortressRectangle() public method

public DefineFortressRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

DefineRectangle() public method

public DefineRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

DefineResourcesRectangle() public method

public DefineResourcesRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

GetInstance() public static method

public static GetInstance ( ) : HUD
return HUD

HUD() public method

HUD Constructor.
public HUD ( RTS_Builder.Player p, Color c ) : System
p RTS_Builder.Player
c Color
return System

Update() public method

Standard Update function.
public Update ( KeyboardState ks, Microsoft.Xna.Framework.Input.MouseState ms ) : void
ks Microsoft.Xna.Framework.Input.KeyboardState
ms Microsoft.Xna.Framework.Input.MouseState
return void

Property Details

instance public_oe static_oe property

public static HUD,RTS_Builder instance
return HUD