C# Class CNCMaps.Engine.Map.Map

Show file Open project: zzattack/ccmaps-net Class Usage Examples

Public Methods

Method Description
DebugDrawTile ( CNCMaps.Engine.Map.MapTile tile ) : void
Draw ( ) : void
DrawSquaredStartPositions ( ) : void
FindCutoffHeight ( ) : int
FixupTileLayer ( ) : void
FreeUseless ( ) : void
GeneratePreviewPack ( PreviewMarkersType previewMarkers, SizeMode sizeMode, System.IniFile map, bool fixDimensions ) : void
GetAutoSizePixels ( ) : Rectangle
GetDrawingSurface ( ) : CNCMaps.Engine.Rendering.DrawingSurface
GetFullMapSizePixels ( ) : Rectangle
GetLocalSizePixels ( ) : Rectangle
GetObjectsAt ( int dx, int dy ) : List
GetSizePixels ( SizeMode sizeMode ) : Rectangle
GetTheater ( ) : Theater
GetTiles ( ) : TileLayer
Initialize ( MapFile mf, EngineType et, List customRulesININames, List customArtININames ) : bool
LoadInis ( List customRulesIniFiles, List customArtIniFiles ) : bool
LoadTheater ( ) : bool
MarkOreAndGems ( ) : void
MarkTiledStartPositions ( ) : void
RedrawOreAndGems ( ) : void
UndrawTiledStartPositions ( ) : void

Private Methods

Method Description
ApplyLightSources ( ) : void
ApplyRemappables ( ) : void
ChangeTileToClear ( CNCMaps.Engine.Game.TileCollection coll, CNCMaps.Engine.Map.MapTile tile ) : void
CreateLevelPalettes ( ) : void
DrawStartMarkersAro ( Graphics gfx, Rectangle fullImage, Rectangle previewImage ) : void
DrawStartMarkersBittah ( Graphics gfx, Rectangle fullImage, Rectangle previewImage ) : void
LoadAllObjects ( MapFile mf ) : void

Reads all objects.

LoadColors ( ) : void

Loads the colors.

LoadCountries ( ) : void

Loads the countries.

LoadCustomInis ( List fileNames ) : IniFile
LoadHouses ( ) : void

Loads the houses.

LoadLightSources ( ) : void
LoadPalettes ( ) : void
RecalculatePalettes ( ) : void
RemoveUnknownObjects ( ) : void
SetBaseTiles ( ) : void
SetDrawables ( ) : void

Method Details

DebugDrawTile() public method

public DebugDrawTile ( CNCMaps.Engine.Map.MapTile tile ) : void
tile CNCMaps.Engine.Map.MapTile
return void

Draw() public method

public Draw ( ) : void
return void

DrawSquaredStartPositions() public method

public DrawSquaredStartPositions ( ) : void
return void

FindCutoffHeight() public method

public FindCutoffHeight ( ) : int
return int

FixupTileLayer() public method

public FixupTileLayer ( ) : void
return void

FreeUseless() public method

public FreeUseless ( ) : void
return void

GeneratePreviewPack() public method

public GeneratePreviewPack ( PreviewMarkersType previewMarkers, SizeMode sizeMode, System.IniFile map, bool fixDimensions ) : void
previewMarkers PreviewMarkersType
sizeMode SizeMode
map System.IniFile
fixDimensions bool
return void

GetAutoSizePixels() public method

public GetAutoSizePixels ( ) : Rectangle
return System.Drawing.Rectangle

GetDrawingSurface() public method

public GetDrawingSurface ( ) : CNCMaps.Engine.Rendering.DrawingSurface
return CNCMaps.Engine.Rendering.DrawingSurface

GetFullMapSizePixels() public method

public GetFullMapSizePixels ( ) : Rectangle
return System.Drawing.Rectangle

GetLocalSizePixels() public method

public GetLocalSizePixels ( ) : Rectangle
return Rectangle

GetObjectsAt() public method

public GetObjectsAt ( int dx, int dy ) : List
dx int
dy int
return List

GetSizePixels() public method

public GetSizePixels ( SizeMode sizeMode ) : Rectangle
sizeMode SizeMode
return Rectangle

GetTheater() public method

public GetTheater ( ) : Theater
return Theater

GetTiles() public method

public GetTiles ( ) : TileLayer
return TileLayer

Initialize() public method

public Initialize ( MapFile mf, EngineType et, List customRulesININames, List customArtININames ) : bool
mf MapFile
et EngineType
customRulesININames List
customArtININames List
return bool

LoadInis() public method

public LoadInis ( List customRulesIniFiles, List customArtIniFiles ) : bool
customRulesIniFiles List
customArtIniFiles List
return bool

LoadTheater() public method

public LoadTheater ( ) : bool
return bool

MarkOreAndGems() public method

public MarkOreAndGems ( ) : void
return void

MarkTiledStartPositions() public method

public MarkTiledStartPositions ( ) : void
return void

RedrawOreAndGems() public method

public RedrawOreAndGems ( ) : void
return void

UndrawTiledStartPositions() public method

public UndrawTiledStartPositions ( ) : void
return void