C# Class Swordening.MapTile

Afficher le fichier Open project: ArghyV/Peliohjelmointi-s2011 Class Usage Examples

Méthodes publiques

Свойство Type Description
Grid ].int[
tileX int

Méthodes publiques

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

Private Methods

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

Method Details

AddStationary() public méthode

public AddStationary ( StationaryObject stationary ) : void
stationary StationaryObject
Résultat void

Draw() public méthode

Draws the tile into view.
public Draw ( ) : void
Résultat void

Initialize() public méthode

Separated from constructor for deserialization.
public Initialize ( SwordeningGame game, InGame gameState ) : void
game SwordeningGame the XNA game
gameState InGame InGame gamestate
Résultat void

MapTile() public méthode

Empty contructor for deserialization.
public MapTile ( ) : System
Résultat System

MapTile() public méthode

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

RelativeGridPos() public méthode

public RelativeGridPos ( int x, int z ) : int
x int
z int
Résultat int

Property Details

Grid public_oe property

public int[,] Grid
Résultat ].int[

tileX public_oe property

public int tileX
Résultat int