C# Class XCom.Interfaces.Base.IMap_Base

Abstract base class definining all common functionality of an editable map
Show file Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Protected Properties

Property Type Description
currentHeight byte
mapData XCom.Interfaces.Base.IMapTile[]
mapSize MapSize
name string
selected MapLocation
tiles List

Public Methods

Method Description
Down ( ) : void

Changes the currentHeight property and fires a HeightChanged event

ResizeTo ( int r, int c, int h ) : void
Save ( ) : void
Save ( System s ) : void
SaveGif ( string file ) : void

Not yet generic enough to call with custom derived classes other than XCMapFile

Up ( ) : void

Changes the currentHeight property and fires a HeightChanged event

this ( MapLocation location ) : IMapTile

Get/Set a MapTile using a MapLocation

this ( int row, int col ) : IMapTile

Get/Set a MapTile at the current height using row,col values

this ( int row, int col, int height ) : IMapTile

Get/Set a MapTile using row,col,height values. No error checking is done to ensure that the location is valid

Protected Methods

Method Description
IMap_Base ( string name, List tiles ) : System

Method Details

Down() public method

Changes the currentHeight property and fires a HeightChanged event
public Down ( ) : void
return void

IMap_Base() protected method

protected IMap_Base ( string name, List tiles ) : System
name string
tiles List
return System

ResizeTo() public method

public ResizeTo ( int r, int c, int h ) : void
r int
c int
h int
return void

Save() public method

public Save ( ) : void
return void

Save() public method

public Save ( System s ) : void
s System
return void

SaveGif() public method

Not yet generic enough to call with custom derived classes other than XCMapFile
public SaveGif ( string file ) : void
file string
return void

Up() public method

Changes the currentHeight property and fires a HeightChanged event
public Up ( ) : void
return void

this() public method

Get/Set a MapTile using a MapLocation
public this ( MapLocation location ) : IMapTile
location MapLocation
return IMapTile

this() public method

Get/Set a MapTile at the current height using row,col values
public this ( int row, int col ) : IMapTile
row int
col int
return IMapTile

this() public method

Get/Set a MapTile using row,col,height values. No error checking is done to ensure that the location is valid
public this ( int row, int col, int height ) : IMapTile
row int
col int
height int
return IMapTile

Property Details

currentHeight protected property

protected byte currentHeight
return byte

mapData protected property

protected IMapTile[],XCom.Interfaces.Base mapData
return XCom.Interfaces.Base.IMapTile[]

mapSize protected property

protected MapSize mapSize
return MapSize

name protected property

protected string name
return string

selected protected property

protected MapLocation selected
return MapLocation

tiles protected property

protected List tiles
return List