Свойство | Тип | Описание | |
---|---|---|---|
TILE_WIDTH | int | ||
layers | CustomArrayList |
||
rectangleTiles | CustomArrayList |
Метод | Описание | |
---|---|---|
BlendTextures ( Microsoft.Xna.Framework.Graphics.Texture2D textures, BlendMode mode ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Blends the textures into one.
|
|
CalculateQuadCount ( int mapWidth ) : int | ||
CalculateQuadDepth ( int mapHeight ) : int | ||
Dispose ( ) : void |
Disposes of the game map, unloading most resources used by it.
|
|
Draw ( |
Draws the map.
|
|
GameMap ( String mapName ) : System | ||
LoadLayers ( string filename ) : void |
Loads the layers from a certain map.
|
|
LoadPathfindingNodes ( String filename ) : void |
Loads all the pathfinding nodes in the game. Also creates the connections.
|
|
MergeLayers ( ) : void |
Merges the loaded layers!
|
|
MergeTextures ( CustomArrayList |
Merges a linked list of textures.
|
|
MergeTextures ( Microsoft.Xna.Framework.Graphics.Texture2D toMerge ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Merges 4 (FOUR) textures together to a big texture.
|
|
Split ( Microsoft.Xna.Framework.Graphics.Texture2D original, int partWidth, int partHeight, int &xCount, int &yCount ) : Microsoft.Xna.Framework.Graphics.Texture2D[] |
Splits a texture into an array of smaller textures of the specified size.
|
Метод | Описание | |
---|---|---|
OnMapTileLoaded ( |
Called when a map tile of the collisionmap is loaded!
|
|
OnMiniMapRenderTick ( |
When the minimap reports that it has loaded a small bit.
|
public BlendTextures ( Microsoft.Xna.Framework.Graphics.Texture2D textures, BlendMode mode ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
textures | Microsoft.Xna.Framework.Graphics.Texture2D | The textures to merge. |
mode | BlendMode | |
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public static CalculateQuadCount ( int mapWidth ) : int | ||
mapWidth | int | |
Результат | int |
public static CalculateQuadDepth ( int mapHeight ) : int | ||
mapHeight | int | |
Результат | int |
public Draw ( |
||
sb | SpriteBatch to draw on. | |
Результат | void |
public GameMap ( String mapName ) : System | ||
mapName | String | |
Результат | System |
public LoadLayers ( string filename ) : void | ||
filename | string | The filename |
Результат | void |
public LoadPathfindingNodes ( String filename ) : void | ||
filename | String | The filename of the map to load from |
Результат | void |
public MergeTextures ( CustomArrayList |
||
textures | CustomArrayList |
|
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public MergeTextures ( Microsoft.Xna.Framework.Graphics.Texture2D toMerge ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
toMerge | Microsoft.Xna.Framework.Graphics.Texture2D | The textures to merge |
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public Split ( Microsoft.Xna.Framework.Graphics.Texture2D original, int partWidth, int partHeight, int &xCount, int &yCount ) : Microsoft.Xna.Framework.Graphics.Texture2D[] | ||
original | Microsoft.Xna.Framework.Graphics.Texture2D | The texture to be split into smaller textures |
partWidth | int | The width of each of the smaller textures that will be contained in the returned array. |
partHeight | int | The height of each of the smaller textures that will be contained in the returned array. |
xCount | int | |
yCount | int | |
Результат | Microsoft.Xna.Framework.Graphics.Texture2D[] |