C# Класс invertika_game.Game.Map

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Map ( int width, int height, int tileWidth, int tileHeight ) : System
addObject ( MapObject obj ) : void
blockTile ( int x, int y, BlockType type ) : void
freeTile ( int x, int y, BlockType type ) : void
getHeight ( ) : int
getObjects ( ) : List
getProperty ( string key ) : string
getTileHeight ( ) : int
getTileWidth ( ) : int
getWalk ( int x, int y, byte walkmask ) : bool
getWidth ( ) : int
setProperty ( string key, string val ) : void

Приватные методы

Метод Описание
setSize ( int width, int height ) : void

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

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

public Map ( int width, int height, int tileWidth, int tileHeight ) : System
width int
height int
tileWidth int
tileHeight int
Результат System

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

public addObject ( MapObject obj ) : void
obj MapObject
Результат void

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

public blockTile ( int x, int y, BlockType type ) : void
x int
y int
type BlockType
Результат void

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

public freeTile ( int x, int y, BlockType type ) : void
x int
y int
type BlockType
Результат void

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

public getHeight ( ) : int
Результат int

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

public getObjects ( ) : List
Результат List

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

public getProperty ( string key ) : string
key string
Результат string

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

public getTileHeight ( ) : int
Результат int

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

public getTileWidth ( ) : int
Результат int

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

public getWalk ( int x, int y, byte walkmask ) : bool
x int
y int
walkmask byte
Результат bool

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

public getWidth ( ) : int
Результат int

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

public setProperty ( string key, string val ) : void
key string
val string
Результат void