Micropolis
BuildingProperties Class Reference

#include <tool.h>

Public Member Functions

 BuildingProperties (int xs, int ys, MapTile base, EditingTool tool, std::string tName, bool anim)
 

Public Attributes

const int sizeX
 Number of tiles in horizontal direction.
 
const int sizeY
 Number of tiles in vertical direction.
 
const MapTile baseTile
 Tile value at top-left in the map.
 
const EditingTool tool
 Tool needed for making the building.
 
std::string toolName
 
const bool buildingIsAnimated
 Building has animated tiles.
 

Detailed Description

Properties of a building with respect to its construction.

Definition at line 323 of file tool.h.

Constructor & Destructor Documentation

◆ BuildingProperties()

BuildingProperties::BuildingProperties ( int  xs,
int  ys,
MapTile  base,
EditingTool  tool,
std::string  tName,
bool  anim 
)

Definition at line 194 of file tool.cpp.

◆ ~BuildingProperties()

BuildingProperties::~BuildingProperties ( )

Definition at line 205 of file tool.cpp.

Member Data Documentation

◆ baseTile

const MapTile BuildingProperties::baseTile

Tile value at top-left in the map.

Definition at line 333 of file tool.h.

Referenced by Micropolis::buildBuilding().

◆ buildingIsAnimated

const bool BuildingProperties::buildingIsAnimated

Building has animated tiles.

Definition at line 340 of file tool.h.

Referenced by Micropolis::buildBuilding().

◆ sizeX

const int BuildingProperties::sizeX

Number of tiles in horizontal direction.

Definition at line 330 of file tool.h.

Referenced by Micropolis::buildBuilding().

◆ sizeY

const int BuildingProperties::sizeY

Number of tiles in vertical direction.

Definition at line 331 of file tool.h.

Referenced by Micropolis::buildBuilding().

◆ tool

const EditingTool BuildingProperties::tool

Tool needed for making the building.

Definition at line 335 of file tool.h.

Referenced by Micropolis::buildBuilding().

◆ toolName

std::string BuildingProperties::toolName

Name of the tool needed for making the building.

Definition at line 338 of file tool.h.

Referenced by Micropolis::buildBuildingTool().


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