C# Class Sharpex2D.Entities.Entity

显示文件 Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
Destroy ( ) : void

Destroys the Entity.

Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Processes a Render.

OnPositionChanged ( Vector2 delta ) : void

Called, if the Position changed.

Update ( GameTime gameTime ) : void

Updates the object.

Protected Methods

Method Description
Entity ( ) : System

Initializes a new Entity class.

Method Details

Destroy() public method

Destroys the Entity.
public Destroy ( ) : void
return void

Draw() public abstract method

Processes a Render.
public abstract Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The SpriteBatch.
gameTime GameTime The GameTime.
return void

Entity() protected method

Initializes a new Entity class.
protected Entity ( ) : System
return System

OnPositionChanged() public method

Called, if the Position changed.
public OnPositionChanged ( Vector2 delta ) : void
delta Vector2 The Delta.
return void

Update() public abstract method

Updates the object.
public abstract Update ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
return void