C# Class Knot3.Framework.Models.GameObject

Inheritance: IGameObject
Afficher le fichier Open project: knot3/knot3-code Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
GetTextureHashCode ( IGameObject obj ) : int
OnViewChanged ( ) : void
UpdateCategory ( ) : void
UpdateCategory ( string category ) : void

Private Methods

Méthode Description
GetHashCode ( ) : int
UpdatePrecomputed ( bool overrideValues = false ) : void

Method Details

Draw() public abstract méthode

Zeichnet das Spielobjekt.
public abstract Draw ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
Résultat void

Equals() public méthode

Vergleicht zwei Spielobjekte.
public Equals ( IGameObject other ) : bool
other IGameObject
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GameObject() public méthode

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
Résultat System

GetTextureHashCode() protected méthode

protected GetTextureHashCode ( IGameObject obj ) : int
obj IGameObject
Résultat int

Intersects() public méthode

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

OnViewChanged() protected méthode

protected OnViewChanged ( ) : void
Résultat void

RotateToFaceTarget() public méthode

public RotateToFaceTarget ( Vector3 target ) : void
target Vector3
Résultat void

Update() public méthode

Wird für jeden Frame aufgerufen.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
Résultat void

UpdateCategory() protected méthode

protected UpdateCategory ( ) : void
Résultat void

UpdateCategory() protected méthode

protected UpdateCategory ( string category ) : void
category string
Résultat void