C# Класс Swordening.LiveGrid

Наследование: Microsoft.Xna.Framework.DrawableGameComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CurrentTile ( ) : MapTile
Draw ( GameTime gameTime ) : void

Draws the contents on screen

Initialize ( ) : void
LiveGrid ( SwordeningGame game, MapGrid &mapGrid ) : System

Creates a new live grid.

MoveTo ( Direction dir ) : void

Moves to the given direction.

SetNewCenter ( int x, int z ) : void

Sets new MapTile as the center of the LiveGrid.

UpdateToTile ( int x, int z ) : void

Sets a new center for the grid if the given tile isn't current.

Приватные методы

Метод Описание
UpdateGrid ( ) : void

Updates the 9 tiles of the LiveGrid.

Описание методов

CurrentTile() публичный Метод

public CurrentTile ( ) : MapTile
Результат MapTile

Draw() публичный Метод

Draws the contents on screen
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

Initialize() публичный Метод

public Initialize ( ) : void
Результат void

LiveGrid() публичный Метод

Creates a new live grid.
public LiveGrid ( SwordeningGame game, MapGrid &mapGrid ) : System
game SwordeningGame
mapGrid MapGrid
Результат System

MoveTo() публичный Метод

Moves to the given direction.
public MoveTo ( Direction dir ) : void
dir Direction A compass point
Результат void

SetNewCenter() публичный Метод

Sets new MapTile as the center of the LiveGrid.
public SetNewCenter ( int x, int z ) : void
x int The centertile's x position in the MapGrid.
z int The centertile's z position in the MapGrid.
Результат void

UpdateToTile() публичный Метод

Sets a new center for the grid if the given tile isn't current.
public UpdateToTile ( int x, int z ) : void
x int
z int
Результат void