C# Class Swordening.MapTile

Mostrar archivo Open project: ArghyV/Peliohjelmointi-s2011 Class Usage Examples

Public Properties

Property Type Description
Grid ].int[
tileX int

Public Methods

Method 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

Method 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 method

public AddStationary ( StationaryObject stationary ) : void
stationary StationaryObject
return void

Draw() public method

Draws the tile into view.
public Draw ( ) : void
return void

Initialize() public method

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

MapTile() public method

Empty contructor for deserialization.
public MapTile ( ) : System
return System

MapTile() public method

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
return System

RelativeGridPos() public method

public RelativeGridPos ( int x, int z ) : int
x int
z int
return int

Property Details

Grid public_oe property

public int[,] Grid
return ].int[

tileX public_oe property

public int tileX
return int