C# Class invertika_game.Game.Map

Afficher le fichier Open project: Invertika/server Class Usage Examples

Méthodes publiques

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

Méthode Description
setSize ( int width, int height ) : void

Method Details

Map() public méthode

public Map ( int width, int height, int tileWidth, int tileHeight ) : System
width int
height int
tileWidth int
tileHeight int
Résultat System

addObject() public méthode

public addObject ( MapObject obj ) : void
obj MapObject
Résultat void

blockTile() public méthode

public blockTile ( int x, int y, BlockType type ) : void
x int
y int
type BlockType
Résultat void

freeTile() public méthode

public freeTile ( int x, int y, BlockType type ) : void
x int
y int
type BlockType
Résultat void

getHeight() public méthode

public getHeight ( ) : int
Résultat int

getObjects() public méthode

public getObjects ( ) : List
Résultat List

getProperty() public méthode

public getProperty ( string key ) : string
key string
Résultat string

getTileHeight() public méthode

public getTileHeight ( ) : int
Résultat int

getTileWidth() public méthode

public getTileWidth ( ) : int
Résultat int

getWalk() public méthode

public getWalk ( int x, int y, byte walkmask ) : bool
x int
y int
walkmask byte
Résultat bool

getWidth() public méthode

public getWidth ( ) : int
Résultat int

setProperty() public méthode

public setProperty ( string key, string val ) : void
key string
val string
Résultat void