C# Class Tantric.World.WorldObject

Represents an object in a layer with a transform and graphic
Inheritance: IPositionable
Afficher le fichier Open project: TheEtiologist/tantric

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime, SpriteBatch batch, Camera cam ) : void

Draw the object. Override.

LoadResources ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Rotate ( double delta ) : void
Scale ( Vector2 Factor ) : void
SetPosition ( Vector2 pos ) : void
SetRotation ( double rot ) : void
SetScale ( Vector2 sca ) : void
Translate ( Vector2 delta ) : void
UnloadResources ( ) : void
Update ( int elapsedMilliseconds ) : void

Update based on the objects logic. Override.

Méthodes protégées

Méthode Description
WorldObject ( String name ) : System

Method Details

Draw() public abstract méthode

Draw the object. Override.
public abstract Draw ( GameTime gameTime, SpriteBatch batch, Camera cam ) : void
gameTime Microsoft.Xna.Framework.GameTime
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
cam Camera
Résultat void

LoadResources() public abstract méthode

public abstract LoadResources ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

Rotate() public méthode

public Rotate ( double delta ) : void
delta double
Résultat void

Scale() public méthode

public Scale ( Vector2 Factor ) : void
Factor Vector2
Résultat void

SetPosition() public méthode

public SetPosition ( Vector2 pos ) : void
pos Vector2
Résultat void

SetRotation() public méthode

public SetRotation ( double rot ) : void
rot double
Résultat void

SetScale() public méthode

public SetScale ( Vector2 sca ) : void
sca Vector2
Résultat void

Translate() public méthode

public Translate ( Vector2 delta ) : void
delta Vector2
Résultat void

UnloadResources() public abstract méthode

public abstract UnloadResources ( ) : void
Résultat void

Update() public abstract méthode

Update based on the objects logic. Override.
public abstract Update ( int elapsedMilliseconds ) : void
elapsedMilliseconds int
Résultat void

WorldObject() protected méthode

protected WorldObject ( String name ) : System
name String
Résultat System