C# Класс XCom.Interfaces.Base.IMap_Base

Abstract base class definining all common functionality of an editable map
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
currentHeight byte
mapData XCom.Interfaces.Base.IMapTile[]
mapSize MapSize
name string
selected MapLocation
tiles List

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
IMap_Base ( string name, List tiles ) : System

Описание методов

Down() публичный Метод

Changes the currentHeight property and fires a HeightChanged event
public Down ( ) : void
Результат void

IMap_Base() защищенный Метод

protected IMap_Base ( string name, List tiles ) : System
name string
tiles List
Результат System

ResizeTo() публичный Метод

public ResizeTo ( int r, int c, int h ) : void
r int
c int
h int
Результат void

Save() публичный Метод

public Save ( ) : void
Результат void

Save() публичный Метод

public Save ( System s ) : void
s System
Результат void

SaveGif() публичный Метод

Not yet generic enough to call with custom derived classes other than XCMapFile
public SaveGif ( string file ) : void
file string
Результат void

Up() публичный Метод

Changes the currentHeight property and fires a HeightChanged event
public Up ( ) : void
Результат void

this() публичный Метод

Get/Set a MapTile using a MapLocation
public this ( MapLocation location ) : IMapTile
location MapLocation
Результат IMapTile

this() публичный Метод

Get/Set a MapTile at the current height using row,col values
public this ( int row, int col ) : IMapTile
row int
col int
Результат IMapTile

this() публичный Метод

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
Результат IMapTile

Описание свойств

currentHeight защищенное свойство

protected byte currentHeight
Результат byte

mapData защищенное свойство

protected IMapTile[],XCom.Interfaces.Base mapData
Результат XCom.Interfaces.Base.IMapTile[]

mapSize защищенное свойство

protected MapSize mapSize
Результат MapSize

name защищенное свойство

protected string name
Результат string

selected защищенное свойство

protected MapLocation selected
Результат MapLocation

tiles защищенное свойство

protected List tiles
Результат List