C# 클래스 Category5.MegaTile

파일 보기 프로젝트 열기: AnyKey/tojam4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
level Level

공개 메소드들

메소드 설명
DrawBackground ( SpriteBatch spriteBatch ) : void

Draws the mega tile background and road with the specified offset

DrawVictims ( SpriteBatch spriteBatch ) : void

Draw all the victims contained in this tile

MegaTile ( Level containingLevel, Vector2 topLeftLocation, MegaTileType mTileType, int width, int height ) : System
RemoveVictim ( Victim remVictim ) : void
SetNeighbours ( MegaTile westTile, MegaTile eastTile, MegaTile northTile, MegaTile southTile ) : void
Update ( float delta ) : void

비공개 메소드들

메소드 설명
tryAddingVictim ( VictimConfig vc ) : bool

메소드 상세

DrawBackground() 공개 메소드

Draws the mega tile background and road with the specified offset
public DrawBackground ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch SpiteBatch to use for drawing the object
리턴 void

DrawVictims() 공개 메소드

Draw all the victims contained in this tile
public DrawVictims ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch SpiteBatch to use for drawing the object
리턴 void

MegaTile() 공개 메소드

public MegaTile ( Level containingLevel, Vector2 topLeftLocation, MegaTileType mTileType, int width, int height ) : System
containingLevel Level
topLeftLocation Vector2
mTileType MegaTileType
width int
height int
리턴 System

RemoveVictim() 공개 메소드

public RemoveVictim ( Victim remVictim ) : void
remVictim Victim
리턴 void

SetNeighbours() 공개 메소드

public SetNeighbours ( MegaTile westTile, MegaTile eastTile, MegaTile northTile, MegaTile southTile ) : void
westTile MegaTile
eastTile MegaTile
northTile MegaTile
southTile MegaTile
리턴 void

Update() 공개 메소드

public Update ( float delta ) : void
delta float
리턴 void

프로퍼티 상세

level 공개적으로 프로퍼티

public Level level
리턴 Level