C# 클래스 XNAInterfaceComponents.Components.Component

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

공개 메소드들

메소드 설명
Component ( ParentComponent parent, Rectangle bounds ) : System
Draw ( SpriteBatch sb ) : void
GetDepth ( ) : int

Gets the depth of this component.

GetLocation ( ) : Point

Gets the location relative to the parent.

GetScreenBounds ( ) : Rectangle

Gets the location on the screen of this component.

OnMouseEnter ( MouseEvent e ) : void
OnMouseExit ( MouseEvent e ) : void
Unload ( ) : void
Update ( ) : void

보호된 메소드들

메소드 설명
GetDrawDepthOffset ( ) : float

Takes the depth of this component, and multiplies it by 0.01f to get a value which you can use to draw the component at the correct depth on the screen.

메소드 상세

Component() 공개 메소드

public Component ( ParentComponent parent, Rectangle bounds ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
리턴 System

Draw() 공개 추상적인 메소드

public abstract Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

GetDepth() 공개 메소드

Gets the depth of this component.
public GetDepth ( ) : int
리턴 int

GetDrawDepthOffset() 보호된 메소드

Takes the depth of this component, and multiplies it by 0.01f to get a value which you can use to draw the component at the correct depth on the screen.
protected GetDrawDepthOffset ( ) : float
리턴 float

GetLocation() 공개 메소드

Gets the location relative to the parent.
public GetLocation ( ) : Point
리턴 Point

GetScreenBounds() 공개 메소드

Gets the location on the screen of this component.
public GetScreenBounds ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

OnMouseEnter() 공개 추상적인 메소드

public abstract OnMouseEnter ( MouseEvent e ) : void
e MouseEvent
리턴 void

OnMouseExit() 공개 추상적인 메소드

public abstract OnMouseExit ( MouseEvent e ) : void
e MouseEvent
리턴 void

Unload() 공개 추상적인 메소드

public abstract Unload ( ) : void
리턴 void

Update() 공개 추상적인 메소드

public abstract Update ( ) : void
리턴 void