C# 클래스 PathfindingTest.Map.GameMap

파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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 ( SpriteBatch sb ) : void

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 textures ) : Microsoft.Xna.Framework.Graphics.Texture2D

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 ( CollisionMap source ) : void

Called when a map tile of the collisionmap is loaded!

OnMiniMapRenderTick ( MiniMap map ) : void

When the minimap reports that it has loaded a small bit.

메소드 상세

BlendTextures() 공개 메소드

Blends the textures into one.
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

CalculateQuadCount() 공개 정적인 메소드

public static CalculateQuadCount ( int mapWidth ) : int
mapWidth int
리턴 int

CalculateQuadDepth() 공개 정적인 메소드

public static CalculateQuadDepth ( int mapHeight ) : int
mapHeight int
리턴 int

Dispose() 공개 메소드

Disposes of the game map, unloading most resources used by it.
public Dispose ( ) : void
리턴 void

Draw() 공개 메소드

Draws the map.
public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch SpriteBatch to draw on.
리턴 void

GameMap() 공개 메소드

public GameMap ( String mapName ) : System
mapName String
리턴 System

LoadLayers() 공개 메소드

Loads the layers from a certain map.
public LoadLayers ( string filename ) : void
filename string The filename
리턴 void

LoadPathfindingNodes() 공개 메소드

Loads all the pathfinding nodes in the game. Also creates the connections.
public LoadPathfindingNodes ( String filename ) : void
filename String The filename of the map to load from
리턴 void

MergeLayers() 공개 메소드

Merges the loaded layers!
public MergeLayers ( ) : void
리턴 void

MergeTextures() 공개 메소드

Merges a linked list of textures.
public MergeTextures ( CustomArrayList textures ) : Microsoft.Xna.Framework.Graphics.Texture2D
textures CustomArrayList
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

MergeTextures() 공개 메소드

Merges 4 (FOUR) textures together to a big texture.
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

Split() 공개 메소드

Splits a texture into an array of smaller textures of the specified size.
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[]

프로퍼티 상세

TILE_WIDTH 공개적으로 정적으로 프로퍼티

public static int TILE_WIDTH
리턴 int

layers 공개적으로 프로퍼티

public CustomArrayList layers
리턴 CustomArrayList

rectangleTiles 공개적으로 프로퍼티

public CustomArrayList rectangleTiles
리턴 CustomArrayList