C# 클래스 Platformer.Tiles.LadderTile

상속: Tile, IActivatable
파일 보기 프로젝트 열기: zmthy/play-dead

공개 메소드들

메소드 설명
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

메소드 상세

ChangeState() 공개 메소드

public ChangeState ( ) : void
리턴 void

IsActive() 공개 메소드

public IsActive ( ) : bool
리턴 bool

LadderTile() 공개 메소드

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

SetState() 공개 메소드

public SetState ( bool active ) : void
active bool
리턴 void

Update() 공개 메소드

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
리턴 void