C# Class Platformer.Tiles.LadderTile

Inheritance: Tile, IActivatable
Afficher le fichier Open project: zmthy/play-dead

Méthodes publiques

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

public ChangeState ( ) : void
Résultat void

IsActive() public méthode

public IsActive ( ) : bool
Résultat bool

LadderTile() public méthode

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

SetState() public méthode

public SetState ( bool active ) : void
active bool
Résultat void

Update() public méthode

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