C# Class Platformer.Sprite

Afficher le fichier Open project: zmthy/play-dead Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Sprite ( ) : System
Résultat System

Sprite() public méthode

public Sprite ( Texture2D texture, Rectangle destBounds ) : System
texture Texture2D
destBounds Rectangle
Résultat System

Sprite() public méthode

public Sprite ( Texture2D texture, Rectangle destBounds, Rectangle sourceBounds ) : System
texture Texture2D
destBounds Rectangle
sourceBounds Rectangle
Résultat System

Sprite() public méthode

public Sprite ( Texture2D texture, float width, float height ) : System
texture Texture2D
width float
height float
Résultat System

draw() public méthode

public draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
Résultat void

draw() public méthode

public draw ( SpriteBatch spriteBatch, int layerDepth ) : void
spriteBatch SpriteBatch
layerDepth int
Résultat void

intersects() public méthode

public intersects ( Sprite other ) : bool
other Sprite
Résultat bool