C# Class invertika_game.Game.Map

Show file Open project: Invertika/server Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
setSize ( int width, int height ) : void

Method Details

Map() public method

public Map ( int width, int height, int tileWidth, int tileHeight ) : System
width int
height int
tileWidth int
tileHeight int
return System

addObject() public method

public addObject ( MapObject obj ) : void
obj MapObject
return void

blockTile() public method

public blockTile ( int x, int y, BlockType type ) : void
x int
y int
type BlockType
return void

freeTile() public method

public freeTile ( int x, int y, BlockType type ) : void
x int
y int
type BlockType
return void

getHeight() public method

public getHeight ( ) : int
return int

getObjects() public method

public getObjects ( ) : List
return List

getProperty() public method

public getProperty ( string key ) : string
key string
return string

getTileHeight() public method

public getTileHeight ( ) : int
return int

getTileWidth() public method

public getTileWidth ( ) : int
return int

getWalk() public method

public getWalk ( int x, int y, byte walkmask ) : bool
x int
y int
walkmask byte
return bool

getWidth() public method

public getWidth ( ) : int
return int

setProperty() public method

public setProperty ( string key, string val ) : void
key string
val string
return void