C# Class Platformer.Sprite

Show file Open project: zmthy/play-dead Class Usage Examples

Public Methods

Method Description
Sprite ( ) : System
Sprite ( Texture2D texture, Rectangle destBounds ) : System
Sprite ( Texture2D texture, Rectangle destBounds, Rectangle sourceBounds ) : System
Sprite ( Texture2D texture, float width, float height ) : System
draw ( SpriteBatch spriteBatch ) : void
draw ( SpriteBatch spriteBatch, int layerDepth ) : void
intersects ( Sprite other ) : bool

Method Details

Sprite() public method

public Sprite ( ) : System
return System

Sprite() public method

public Sprite ( Texture2D texture, Rectangle destBounds ) : System
texture Texture2D
destBounds Rectangle
return System

Sprite() public method

public Sprite ( Texture2D texture, Rectangle destBounds, Rectangle sourceBounds ) : System
texture Texture2D
destBounds Rectangle
sourceBounds Rectangle
return System

Sprite() public method

public Sprite ( Texture2D texture, float width, float height ) : System
texture Texture2D
width float
height float
return System

draw() public method

public draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
return void

draw() public method

public draw ( SpriteBatch spriteBatch, int layerDepth ) : void
spriteBatch SpriteBatch
layerDepth int
return void

intersects() public method

public intersects ( Sprite other ) : bool
other Sprite
return bool