Overseer
Classes | Public Member Functions | List of all members
Overseer::Tile Class Reference

A tile is area that has size 1x1 within SCII maps. More...

#include "Tile.h"

Public Member Functions

TileTerrain getTileTerrain ()
 Says what type of terrain it is on this tile, see TileTerrain for alteritives. More...
 
float getTerrainHeight ()
 Get the z-axis value for the tile. More...
 
void setTerrainHeight (float height)
 Sets the z-axis value for the tile. More...
 
void setTileTerrain (TileTerrain &terrain)
 If there exist build or wall. More...
 
void setDistNearestUnpathable (float dist)
 Set a distance to the nearest unpathable tile. More...
 
float getDistNearestUnpathable () const
 Get the distance to nearest unpathable. More...
 
void setRegionId (size_t regionId)
 Set the region id this tile belong to. More...
 
size_t getRegionId ()
 Get the region id this tile is in. More...
 
bool isNeutral ()
 Check if the tile contain neutral unit, e.g. gas, miniral and destroable.
 

Detailed Description

A tile is area that has size 1x1 within SCII maps.

Member Function Documentation

◆ getDistNearestUnpathable()

float Overseer::Tile::getDistNearestUnpathable ( ) const

Get the distance to nearest unpathable.

Returns
distance.

◆ getRegionId()

size_t Overseer::Tile::getRegionId ( )

Get the region id this tile is in.

Returns
regionid

◆ getTerrainHeight()

float Overseer::Tile::getTerrainHeight ( )

Get the z-axis value for the tile.

Returns
z-axis value.

◆ getTileTerrain()

TileTerrain Overseer::Tile::getTileTerrain ( )

Says what type of terrain it is on this tile, see TileTerrain for alteritives.

Returns
the terrain determed for THIS tile.

◆ setDistNearestUnpathable()

void Overseer::Tile::setDistNearestUnpathable ( float  dist)

Set a distance to the nearest unpathable tile.

Parameters
distThe distance til unpathable.

◆ setRegionId()

void Overseer::Tile::setRegionId ( size_t  regionId)

Set the region id this tile belong to.

Parameters
regionIdthe id to set.

◆ setTerrainHeight()

void Overseer::Tile::setTerrainHeight ( float  height)

Sets the z-axis value for the tile.

Parameters
z-axisvalue of tile

◆ setTileTerrain()

void Overseer::Tile::setTileTerrain ( TileTerrain &  terrain)

If there exist build or wall.

/// Currentlyt no use \\

Returns
true if wall or build exist, false otherwise. Sets a terrain for THIS tile.
Parameters
terrainthat will be set for the tile

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