C# Class Category5.MegaTile

Show file Open project: AnyKey/tojam4 Class Usage Examples

Public Properties

Property Type Description
level Level

Public Methods

Method Description
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

Private Methods

Method Description
tryAddingVictim ( VictimConfig vc ) : bool

Method Details

DrawBackground() public method

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
return void

DrawVictims() public method

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
return void

MegaTile() public method

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

RemoveVictim() public method

public RemoveVictim ( Victim remVictim ) : void
remVictim Victim
return void

SetNeighbours() public method

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

Update() public method

public Update ( float delta ) : void
delta float
return void

Property Details

level public property

public Level level
return Level