C# Class Platformer.Tiles.Tile

Stores the appearance and collision behavior of a tile.
Mostrar archivo Open project: zmthy/play-dead Class Usage Examples

Public Properties

Property Type Description
IsFlooded bool

Public Methods

Method Description
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
Tile ( Microsoft.Xna.Framework.Graphics.Sprite sprite, TileCollision collision ) : System

Constructs a new tile.

Update ( GameTime gameTime ) : void

Method Details

Draw() public method

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Tile() public method

Constructs a new tile.
public Tile ( Microsoft.Xna.Framework.Graphics.Sprite sprite, TileCollision collision ) : System
sprite Microsoft.Xna.Framework.Graphics.Sprite
collision TileCollision
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

IsFlooded public_oe property

public bool IsFlooded
return bool