C# Class Bricklayer.Common.World.Tile

Represents either a foreground or background tile in the map
Exibir arquivo Open project: Cyral/Bricklayer Class Usage Examples

Protected Properties

Property Type Description
backgroundTint Color

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 drawPosition, int x, int y, int z, bool flat = false ) : void

Handles drawing of a single tile

Equals ( Tile compareTo ) : bool
Tile ( BlockType block ) : System

Sets or creates a new block

Update ( GameTime gameTime ) : void

Handles updating the tile's logic

Method Details

Draw() public method

Handles drawing of a single tile
public Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 drawPosition, int x, int y, int z, bool flat = false ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
texture Microsoft.Xna.Framework.Graphics.Texture2D
drawPosition Vector2
x int
y int
z int
flat bool
return void

Equals() public method

public Equals ( Tile compareTo ) : bool
compareTo Tile
return bool

Tile() public method

Sets or creates a new block
public Tile ( BlockType block ) : System
block BlockType
return System

Update() public method

Handles updating the tile's logic
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

backgroundTint protected_oe static_oe property

protected static Color backgroundTint
return Color