Property | Type | Description | |
---|---|---|---|
DrawBorder | void |
Method | Description | |
---|---|---|
CenterTile ( float tileX, float tileY ) : void |
Will center terrain at specified coordinates. (in tiles)
|
|
Draw ( |
Draws the loaded chunks visible in the viewport
|
|
GetChunkCount ( ) : int | ||
GetNodeCount ( ) : int | ||
Initialize ( ) : void |
Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
|
|
LoadChunk ( float chunkX, float chunkY ) : void |
Load a chunk at specified x and y position (in chunks)
|
|
LoadContent ( ) : void |
Loads terrain tiles
|
|
ScreenToTile ( |
Converts screen rectangle into tiles
|
|
ScreenToTileF ( System screenRect ) : System.Drawing.RectangleF |
Converts screen rectangle into tiles
|
|
TerrainManager ( |
||
TileToScreen ( System tileRect ) : |
Converts tile rectangle into screen position.
|
|
TileToScreenF ( System tileRect ) : System.Drawing.RectangleF |
Converts tile rectangle into screen position.
|
|
Update ( |
Updates chunk states.
|
|
UpdateChunks ( Vector2 position ) : void |
Method | Description | |
---|---|---|
DrawBorder ( |
Will draw a border (hollow rectangle) of the given 'thicknessOfBorder' (in pixels) of the specified color. By Sean Colombo, from http://bluelinegamestudios.com/blog
|
public CenterTile ( float tileX, float tileY ) : void | ||
tileX | float | |
tileY | float | |
return | void |
public Draw ( |
||
gameTime | ||
return | void |
public LoadChunk ( float chunkX, float chunkY ) : void | ||
chunkX | float | |
chunkY | float | |
return | void |
public ScreenToTile ( |
||
screenRect | ||
return | System.Drawing.RectangleF |
public ScreenToTileF ( System screenRect ) : System.Drawing.RectangleF | ||
screenRect | System | |
return | System.Drawing.RectangleF |
public TerrainManager ( |
||
game | ||
return | System |
public TileToScreen ( System tileRect ) : |
||
tileRect | System | |
return |
public TileToScreenF ( System tileRect ) : System.Drawing.RectangleF | ||
tileRect | System | |
return | System.Drawing.RectangleF |
public Update ( |
||
gameTime | ||
return | void |
public UpdateChunks ( Vector2 position ) : void | ||
position | Vector2 | |
return | void |