C# Class Bricklayer.Common.World.AnimatedTile

Represents an instance of block that is able to be animated
Inheritance: Tile
Mostra file Open project: Cyral/Bricklayer

Public Methods

Method Description
AnimatedTile ( BlockType block ) : System
Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 drawPosition, int x, int y, int z, bool flat = false ) : void
Update ( GameTime gameTime ) : void

Method Details

AnimatedTile() public method

public AnimatedTile ( BlockType block ) : System
block BlockType
return System

Draw() public method

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

Update() public method

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