C# Class PlayDead.Tile

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

Méthodes publiques

Свойство Type Description
COLLIDES_WITH_BOTTOM int
COLLIDES_WITH_LEFT int
COLLIDES_WITH_RIGHT int
COLLIDES_WITH_TOP int
NO_COLLISION int
SOLID_BLOCK int

Méthodes publiques

Méthode Description
DrawTile ( SpriteBatch sb, Rectangle bounds ) : void

Draws this tile on the screen

Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clip, int collisionMask ) : System

Creates a new Tile object

Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clip, int collisionMask, Color tint ) : System

Creates a new Tile Object

Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clips, int collisionMask, Color tint, int delay ) : System

Constructs an *animated* Tile

getCollisionMask ( ) : int

Method Details

DrawTile() public méthode

Draws this tile on the screen
public DrawTile ( SpriteBatch sb, Rectangle bounds ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch to use to render this tile
bounds Microsoft.Xna.Framework.Rectangle
Résultat void

Tile() public méthode

Creates a new Tile object
public Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clip, int collisionMask ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D The tile texture sheet
clip Microsoft.Xna.Framework.Rectangle The portion of the sheet that contains this tile
collisionMask int The collision bitmask
Résultat System

Tile() public méthode

Creates a new Tile Object
public Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clip, int collisionMask, Color tint ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D The tile texture sheet
clip Microsoft.Xna.Framework.Rectangle The portion of the sheet that contains this tile
collisionMask int The collision bitmask
tint Color The tint to apply to this tile (White -> none)
Résultat System

Tile() public méthode

Constructs an *animated* Tile
public Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle clips, int collisionMask, Color tint, int delay ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D The tile texture sheet
clips Microsoft.Xna.Framework.Rectangle An array of clips that specific this tiles animation
collisionMask int The collision bitmask
tint Color The tint to apply to this tile (White -> none)
delay int
Résultat System

getCollisionMask() public méthode

public getCollisionMask ( ) : int
Résultat int

Property Details

COLLIDES_WITH_BOTTOM public_oe static_oe property

public static int COLLIDES_WITH_BOTTOM
Résultat int

COLLIDES_WITH_LEFT public_oe static_oe property

public static int COLLIDES_WITH_LEFT
Résultat int

COLLIDES_WITH_RIGHT public_oe static_oe property

public static int COLLIDES_WITH_RIGHT
Résultat int

COLLIDES_WITH_TOP public_oe static_oe property

public static int COLLIDES_WITH_TOP
Résultat int

NO_COLLISION public_oe static_oe property

public static int NO_COLLISION
Résultat int

SOLID_BLOCK public_oe static_oe property

public static int SOLID_BLOCK
Résultat int