C# Class PlayDead.Tile

Exibir arquivo Open project: zmthy/play-dead Class Usage Examples

Public Properties

Property Type Description
COLLIDES_WITH_BOTTOM int
COLLIDES_WITH_LEFT int
COLLIDES_WITH_RIGHT int
COLLIDES_WITH_TOP int
NO_COLLISION int
SOLID_BLOCK int

Public Methods

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

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

Tile() public method

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

Tile() public method

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)
return System

Tile() public method

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

getCollisionMask() public method

public getCollisionMask ( ) : int
return int

Property Details

COLLIDES_WITH_BOTTOM public_oe static_oe property

public static int COLLIDES_WITH_BOTTOM
return int

COLLIDES_WITH_LEFT public_oe static_oe property

public static int COLLIDES_WITH_LEFT
return int

COLLIDES_WITH_RIGHT public_oe static_oe property

public static int COLLIDES_WITH_RIGHT
return int

COLLIDES_WITH_TOP public_oe static_oe property

public static int COLLIDES_WITH_TOP
return int

NO_COLLISION public_oe static_oe property

public static int NO_COLLISION
return int

SOLID_BLOCK public_oe static_oe property

public static int SOLID_BLOCK
return int