C# Class XCom.Interfaces.Base.IMap_Base

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

Protected Properties

Свойство Type Description
currentHeight byte
mapData XCom.Interfaces.Base.IMapTile[]
mapSize MapSize
name string
selected MapLocation
tiles List

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
IMap_Base ( string name, List tiles ) : System

Method Details

Down() public méthode

Changes the currentHeight property and fires a HeightChanged event
public Down ( ) : void
Résultat void

IMap_Base() protected méthode

protected IMap_Base ( string name, List tiles ) : System
name string
tiles List
Résultat System

ResizeTo() public méthode

public ResizeTo ( int r, int c, int h ) : void
r int
c int
h int
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void

Save() public méthode

public Save ( System s ) : void
s System
Résultat void

SaveGif() public méthode

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

Up() public méthode

Changes the currentHeight property and fires a HeightChanged event
public Up ( ) : void
Résultat void

this() public méthode

Get/Set a MapTile using a MapLocation
public this ( MapLocation location ) : IMapTile
location MapLocation
Résultat IMapTile

this() public méthode

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

this() public méthode

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
Résultat IMapTile

Property Details

currentHeight protected_oe property

protected byte currentHeight
Résultat byte

mapData protected_oe property

protected IMapTile[],XCom.Interfaces.Base mapData
Résultat XCom.Interfaces.Base.IMapTile[]

mapSize protected_oe property

protected MapSize mapSize
Résultat MapSize

name protected_oe property

protected string name
Résultat string

selected protected_oe property

protected MapLocation selected
Résultat MapLocation

tiles protected_oe property

protected List tiles
Résultat List