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

A tile type used in planet tilemaps More...

Inheritance diagram for MidnightBlue.PlanetTile:
Inheritance graph
Collaboration diagram for MidnightBlue.PlanetTile:
Collaboration graph

Public Member Functions

 PlanetTile (double height, double moisture, double temperature, Random rand)
 Initializes a new instance of the T:MidnightBlue.PlanetTile class, generates a biome and specifies collision data based on its biome type. More...
 
int GetTextureID (Biome biome, Random rand)
 Gets the ID of a biomes texture region for use in a tilemap More...
 
Color GetColor (Biome biome)
 Gets the color of a tile in the minimap based on its biome. More...
 
- Public Member Functions inherited from MB2D.Tile
 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

HeightLevel Height [get]
 Gets the height category of the tile. More...
 
MoistureLevel Moisture [get]
 Gets the moisture category of the tile. More...
 
TemperatureLevel Temperature [get]
 Gets the temperature category of the tile. More...
 
Biome Biome [get]
 Gets the biome category of the tile. More...
 
- Properties inherited from MB2D.Tile
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

A tile type used in planet tilemaps

Constructor & Destructor Documentation

§ PlanetTile()

MidnightBlue.PlanetTile.PlanetTile ( double  height,
double  moisture,
double  temperature,
Random  rand 
)
inline

Initializes a new instance of the T:MidnightBlue.PlanetTile class, generates a biome and specifies collision data based on its biome type.

Parameters
heightHeight value to use in generation.
moistureMoisture value to use in generation.
temperatureTemperature value to use in generation.
randRandom number generator used in biome generation.
Here is the call graph for this function:

Member Function Documentation

§ GetColor()

Color MidnightBlue.PlanetTile.GetColor ( Biome  biome)
inline

Gets the color of a tile in the minimap based on its biome.

Returns
The color.
Parameters
biomeBiome to get.
Here is the caller graph for this function:

§ GetTextureID()

int MidnightBlue.PlanetTile.GetTextureID ( Biome  biome,
Random  rand 
)
inline

Gets the ID of a biomes texture region for use in a tilemap

Returns
The texture region identifier.
Parameters
biomeBiome to get.
randRandom number generator to use for varied region id's.
Here is the caller graph for this function:

Property Documentation

§ Biome

Biome MidnightBlue.PlanetTile.Biome
get

Gets the biome category of the tile.

The biome category.

§ Height

HeightLevel MidnightBlue.PlanetTile.Height
get

Gets the height category of the tile.

The height category.

§ Moisture

MoistureLevel MidnightBlue.PlanetTile.Moisture
get

Gets the moisture category of the tile.

The moisture category.

§ Temperature

TemperatureLevel MidnightBlue.PlanetTile.Temperature
get

Gets the temperature category of the tile.

The temperature category.


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