C# Класс Swordening.MapTile

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

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

Свойство Тип Описание
Grid ].int[
tileX int

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

Метод Описание
AddStationary ( StationaryObject stationary ) : void
Draw ( ) : void

Draws the tile into view.

Initialize ( SwordeningGame game, InGame gameState ) : void

Separated from constructor for deserialization.

MapTile ( ) : System

Empty contructor for deserialization.

MapTile ( SwordeningGame game, InGame gameState, int x, int z, int grid ) : System

Default contructor.

RelativeGridPos ( int x, int z ) : int

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

Метод Описание
AddSquare ( IDictionary verticesLists, int x, int z ) : void

Adds a square to the list of vertices.

AddSquareVertices ( List vertices, int x, int z ) : void

Adds the square to a given list with wanted coordinates.

SetUpTextures ( ) : void

Sets up the possible textures

SetUpVertices ( ) : void

Sets up the tile's vertices.

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

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

public AddStationary ( StationaryObject stationary ) : void
stationary StationaryObject
Результат void

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

Draws the tile into view.
public Draw ( ) : void
Результат void

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

Separated from constructor for deserialization.
public Initialize ( SwordeningGame game, InGame gameState ) : void
game SwordeningGame the XNA game
gameState InGame InGame gamestate
Результат void

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

Empty contructor for deserialization.
public MapTile ( ) : System
Результат System

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

Default contructor.
public MapTile ( SwordeningGame game, InGame gameState, int x, int z, int grid ) : System
game SwordeningGame the XNA game
gameState InGame InGame gamestate
x int
z int
grid int
Результат System

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

public RelativeGridPos ( int x, int z ) : int
x int
z int
Результат int

Описание свойств

Grid публичное свойство

public int[,] Grid
Результат ].int[

tileX публичное свойство

public int tileX
Результат int