C# Class Category5.MegaTile

Afficher le fichier Open project: AnyKey/tojam4 Class Usage Examples

Méthodes publiques

Свойство Type Description
level Level

Méthodes publiques

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

Méthode Description
tryAddingVictim ( VictimConfig vc ) : bool

Method Details

DrawBackground() public méthode

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

DrawVictims() public méthode

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

MegaTile() public méthode

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

RemoveVictim() public méthode

public RemoveVictim ( Victim remVictim ) : void
remVictim Victim
Résultat void

SetNeighbours() public méthode

public SetNeighbours ( MegaTile westTile, MegaTile eastTile, MegaTile northTile, MegaTile southTile ) : void
westTile MegaTile
eastTile MegaTile
northTile MegaTile
southTile MegaTile
Résultat void

Update() public méthode

public Update ( float delta ) : void
delta float
Résultat void

Property Details

level public_oe property

public Level level
Résultat Level