C# Класс Category5.MegaTile

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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