C# Class Tantric.World.WorldObject

Represents an object in a layer with a transform and graphic
Inheritance: IPositionable
ファイルを表示 Open project: TheEtiologist/tantric

Public Methods

Method 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.

Protected Methods

Method Description
WorldObject ( String name ) : System

Method Details

Draw() public abstract method

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
return void

LoadResources() public abstract method

public abstract LoadResources ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

Rotate() public method

public Rotate ( double delta ) : void
delta double
return void

Scale() public method

public Scale ( Vector2 Factor ) : void
Factor Vector2
return void

SetPosition() public method

public SetPosition ( Vector2 pos ) : void
pos Vector2
return void

SetRotation() public method

public SetRotation ( double rot ) : void
rot double
return void

SetScale() public method

public SetScale ( Vector2 sca ) : void
sca Vector2
return void

Translate() public method

public Translate ( Vector2 delta ) : void
delta Vector2
return void

UnloadResources() public abstract method

public abstract UnloadResources ( ) : void
return void

Update() public abstract method

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

WorldObject() protected method

protected WorldObject ( String name ) : System
name String
return System