C# Class Bricklayer.Common.World.Tile

Represents either a foreground or background tile in the map
Afficher le fichier Open project: Cyral/Bricklayer Class Usage Examples

Protected Properties

Свойство Type Description
backgroundTint Color

Méthodes publiques

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

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
Résultat void

Equals() public méthode

public Equals ( Tile compareTo ) : bool
compareTo Tile
Résultat bool

Tile() public méthode

Sets or creates a new block
public Tile ( BlockType block ) : System
block BlockType
Résultat System

Update() public méthode

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

Property Details

backgroundTint protected_oe static_oe property

protected static Color backgroundTint
Résultat Color