C# 클래스 RTS_Builder.HUD

상속: MouseClickListener
파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
instance HUD

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
Draw ( SpriteBatch sb ) : void

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

MouseClickListener ( MouseEvent me ) : void

메소드 상세

CheckDraw() 공개 메소드

public CheckDraw ( ) : void
리턴 void

CountUnits() 공개 메소드

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

DefineBarracksRectangle() 공개 메소드

public DefineBarracksRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

DefineDetailsRectangle() 공개 메소드

public DefineDetailsRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

DefineFactoryRectangle() 공개 메소드

public DefineFactoryRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

DefineFortressRectangle() 공개 메소드

public DefineFortressRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

DefineRectangle() 공개 메소드

public DefineRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

DefineResourcesRectangle() 공개 메소드

public DefineResourcesRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

GetInstance() 공개 정적인 메소드

public static GetInstance ( ) : HUD
리턴 HUD

HUD() 공개 메소드

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

Update() 공개 메소드

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
리턴 void

프로퍼티 상세

instance 공개적으로 정적으로 프로퍼티

public static HUD,RTS_Builder instance
리턴 HUD