C# 클래스 Knot3.Framework.Models.GameObject

상속: IGameObject
파일 보기 프로젝트 열기: knot3/knot3-code 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( GameTime time ) : void

Zeichnet das Spielobjekt.

Equals ( IGameObject other ) : bool

Vergleicht zwei Spielobjekte.

Equals ( object obj ) : bool
GameObject ( Vector3 position = default(Vector3), Angles3 rotation = default(Angles3), Vector3 scale = default(Vector3), bool isVisible = true, bool isSelectable = false, bool isMovable = false ) : System
Intersects ( Microsoft.Xna.Framework.Ray ray ) : GameObjectDistance

Überprüft, ob der Mausstrahl das Spielobjekt schneidet.

RotateToFaceTarget ( Vector3 target ) : void
Update ( GameTime time ) : void

Wird für jeden Frame aufgerufen.

보호된 메소드들

메소드 설명
GetTextureHashCode ( IGameObject obj ) : int
OnViewChanged ( ) : void
UpdateCategory ( ) : void
UpdateCategory ( string category ) : void

비공개 메소드들

메소드 설명
GetHashCode ( ) : int
UpdatePrecomputed ( bool overrideValues = false ) : void

메소드 상세

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

Zeichnet das Spielobjekt.
public abstract Draw ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
리턴 void

Equals() 공개 메소드

Vergleicht zwei Spielobjekte.
public Equals ( IGameObject other ) : bool
other IGameObject
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GameObject() 공개 메소드

public GameObject ( Vector3 position = default(Vector3), Angles3 rotation = default(Angles3), Vector3 scale = default(Vector3), bool isVisible = true, bool isSelectable = false, bool isMovable = false ) : System
position Vector3
rotation Angles3
scale Vector3
isVisible bool
isSelectable bool
isMovable bool
리턴 System

GetTextureHashCode() 보호된 메소드

protected GetTextureHashCode ( IGameObject obj ) : int
obj IGameObject
리턴 int

Intersects() 공개 메소드

Überprüft, ob der Mausstrahl das Spielobjekt schneidet.
public Intersects ( Microsoft.Xna.Framework.Ray ray ) : GameObjectDistance
ray Microsoft.Xna.Framework.Ray
리턴 GameObjectDistance

OnViewChanged() 보호된 메소드

protected OnViewChanged ( ) : void
리턴 void

RotateToFaceTarget() 공개 메소드

public RotateToFaceTarget ( Vector3 target ) : void
target Vector3
리턴 void

Update() 공개 메소드

Wird für jeden Frame aufgerufen.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
리턴 void

UpdateCategory() 보호된 메소드

protected UpdateCategory ( ) : void
리턴 void

UpdateCategory() 보호된 메소드

protected UpdateCategory ( string category ) : void
category string
리턴 void