C# Class RTS_Builder.HUD

Inheritance: MouseClickListener
Afficher le fichier Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Méthodes publiques

Свойство Type Description
instance HUD

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CheckDraw ( ) : void
Résultat void

CountUnits() public méthode

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

DefineBarracksRectangle() public méthode

public DefineBarracksRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

DefineDetailsRectangle() public méthode

public DefineDetailsRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

DefineFactoryRectangle() public méthode

public DefineFactoryRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

DefineFortressRectangle() public méthode

public DefineFortressRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

DefineRectangle() public méthode

public DefineRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

DefineResourcesRectangle() public méthode

public DefineResourcesRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

GetInstance() public static méthode

public static GetInstance ( ) : HUD
Résultat HUD

HUD() public méthode

HUD Constructor.
public HUD ( RTS_Builder.Player p, Color c ) : System
p RTS_Builder.Player
c Color
Résultat System

Update() public méthode

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
Résultat void

Property Details

instance public_oe static_oe property

public static HUD,RTS_Builder instance
Résultat HUD