C# Class Platformer.Tiles.LadderTile

Inheritance: Tile, IActivatable
Mostrar archivo Open project: zmthy/play-dead

Public Methods

Method Description
ChangeState ( ) : void
IsActive ( ) : bool

LadderTile ( Microsoft.Xna.Framework.Graphics.Sprite sprite, TileCollision collision ) : System

Constructor defaulting to inactive ladder

SetState ( bool active ) : void
Update ( GameTime gameTime ) : void

Need this so once the game has init the tile construction is loaded with a null sprite rather than the active sprite

Method Details

ChangeState() public method

public ChangeState ( ) : void
return void

IsActive() public method

public IsActive ( ) : bool
return bool

LadderTile() public method

Constructor defaulting to inactive ladder
public LadderTile ( Microsoft.Xna.Framework.Graphics.Sprite sprite, TileCollision collision ) : System
sprite Microsoft.Xna.Framework.Graphics.Sprite
collision TileCollision
return System

SetState() public method

public SetState ( bool active ) : void
active bool
return void

Update() public method

Need this so once the game has init the tile construction is loaded with a null sprite rather than the active sprite
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void