C# 클래스 geek.GameEngine.Visuals.VisualObjectBase

파일 보기 프로젝트 열기: impworks/xna.geek.engine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
IsVisible bool
Position Microsoft.Xna.Framework.Vector2

공개 메소드들

메소드 설명
BringDown ( ) : void

Bring the object 1 layer down in the drawing order.

BringToBack ( ) : void

Bring the object to the bottom of current object batch.

BringToFront ( ) : void

Bring the object to the top of current object batch.

BringUp ( ) : void

Bring the object 1 layer up in the drawing order.

Draw ( SpriteBatch batch ) : void

The update screen method.

GetBoundingBox ( bool absolute = false ) : Rectangle

Get a bounding box for the current object.

GetPosition ( bool absolute = false ) : Vector2

Get a position depending on the flag.

Remove ( ) : void

Remove the object from visual list.

ResetLayerId ( ) : void

Reset the layer id to start new drawing loop.

Update ( ) : void

The update logic method.

보호된 메소드들

메소드 설명
VisualObjectBase ( ) : System.Collections.Generic

비공개 메소드들

메소드 설명
getContainingObjectList ( List &list, int &index ) : bool

Gets the parent VisualObjectBatch's list for further manipulations with layering.

메소드 상세

BringDown() 공개 메소드

Bring the object 1 layer down in the drawing order.
public BringDown ( ) : void
리턴 void

BringToBack() 공개 메소드

Bring the object to the bottom of current object batch.
public BringToBack ( ) : void
리턴 void

BringToFront() 공개 메소드

Bring the object to the top of current object batch.
public BringToFront ( ) : void
리턴 void

BringUp() 공개 메소드

Bring the object 1 layer up in the drawing order.
public BringUp ( ) : void
리턴 void

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

The update screen method.
public abstract Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch SpriteBatch to draw to.
리턴 void

GetBoundingBox() 공개 메소드

Get a bounding box for the current object.
public GetBoundingBox ( bool absolute = false ) : Rectangle
absolute bool Absolute or relative coordinates?
리턴 Microsoft.Xna.Framework.Rectangle

GetPosition() 공개 메소드

Get a position depending on the flag.
public GetPosition ( bool absolute = false ) : Vector2
absolute bool Absolute or relative position.
리턴 Microsoft.Xna.Framework.Vector2

Remove() 공개 메소드

Remove the object from visual list.
public Remove ( ) : void
리턴 void

ResetLayerId() 공개 정적인 메소드

Reset the layer id to start new drawing loop.
public static ResetLayerId ( ) : void
리턴 void

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

The update logic method.
public abstract Update ( ) : void
리턴 void

VisualObjectBase() 보호된 메소드

protected VisualObjectBase ( ) : System.Collections.Generic
리턴 System.Collections.Generic

프로퍼티 상세

IsVisible 공개적으로 프로퍼티

Gets or sets the flag indicating the object is to be displayed.
public bool IsVisible
리턴 bool

Position 공개적으로 프로퍼티

Visual object position relative to it's parent (scene, batch, etc).
public Vector2,Microsoft.Xna.Framework Position
리턴 Microsoft.Xna.Framework.Vector2