C# Class PathfindingTest.UI.HUDCommandObject

Show file Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Public Properties

Property Type Description
disabledColor Color
x float
y float

Public Methods

Method Description
DefineDetailsRectangle ( ) : Rectangle
DefineRectangle ( ) : Rectangle
DrawDetails ( ) : System.Boolean
HUDCommandObject ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Type type, float x, float y, Color color, Color hudColor ) : System
Update ( KeyboardState ks, Microsoft.Xna.Framework.Input.MouseState ms ) : void

Private Methods

Method Description
DefineDetailString ( ) : String
Draw ( SpriteBatch sb ) : void

Method Details

DefineDetailsRectangle() public method

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

DefineRectangle() public method

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

DrawDetails() public method

public DrawDetails ( ) : System.Boolean
return System.Boolean

HUDCommandObject() public method

public HUDCommandObject ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Type type, float x, float y, Color color, Color hudColor ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
type System.Type
x float
y float
color Color
hudColor Color
return System

Update() public method

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

disabledColor public property

public Color disabledColor
return Color

x public property

public float x
return float

y public property

public float y
return float