C# 클래스 Swordening.MapTile

파일 보기 프로젝트 열기: ArghyV/Peliohjelmointi-s2011 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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