Midnight Blue Game and Engine
Public Member Functions | Properties | List of all members
MB2D.Tile Class Reference

Represents a single tile in a tile map. More...

Inheritance diagram for MB2D.Tile:
Inheritance graph
Collaboration diagram for MB2D.Tile:
Collaboration graph

Public Member Functions

 Tile (int textureID, Color color)
 Initializes a new instance of the T:MidnightBlue.Tile class More...
 
 Tile ()
 Initializes a new instance of the T:MidnightBlue.Tile class. More...
 

Properties

int ID [get, protected set]
 Gets or sets the tile map region ID to use for this tile. More...
 
Color TintColor [get, protected set]
 Gets or sets the color of the tint. More...
 
TileFlag Flag [get, set]
 Gets or sets the tile flag for collision detection. More...
 

Detailed Description

Represents a single tile in a tile map.

Constructor & Destructor Documentation

§ Tile() [1/2]

MB2D.Tile.Tile ( int  textureID,
Color  color 
)
inline

Initializes a new instance of the T:MidnightBlue.Tile class

Parameters
textureIDID of the texture region in the tile map to use for this tile, i.e. Grass or water.
colorColor tint to apply to the tile.

§ Tile() [2/2]

MB2D.Tile.Tile ( )
inline

Initializes a new instance of the T:MidnightBlue.Tile class.

Property Documentation

§ Flag

TileFlag MB2D.Tile.Flag
getset

Gets or sets the tile flag for collision detection.

The flag.

§ ID

int MB2D.Tile.ID
getprotected set

Gets or sets the tile map region ID to use for this tile.

The tile map region ID.

§ TintColor

Color MB2D.Tile.TintColor
getprotected set

Gets or sets the color of the tint.

The color of the tint.


The documentation for this class was generated from the following file: