#include "stdafx.h"
#include "micropolis.h"
#include "text.h"
#include "tool.h"
#include "stubs.h"
Go to the source code of this file.
Functions | |
static short | checkBigZone (MapTile id, short *deltaHPtr, short *deltaVPtr) |
Variables | |
static const short | gCostOf [] |
static const short | gToolSize [] |
static short | idArray [29] |
static const BuildingProperties | residentialZoneBuilding |
static const BuildingProperties | commercialZoneBuilding |
static const BuildingProperties | industrialZoneBuilding |
static const BuildingProperties | policeStationBuilding |
static const BuildingProperties | fireStationBuilding |
static const BuildingProperties | stadiumBuilding |
static const BuildingProperties | coalPowerBuilding |
static const BuildingProperties | nuclearPowerBuilding |
static const BuildingProperties | seaportBuilding |
static const BuildingProperties | airportBuilding |
Definition in file tool.cpp.
static short checkBigZone | ( | MapTile | id, | |
short * | deltaHPtr, | |||
short * | deltaVPtr | |||
) | [static] |
Compute where the 'center' (at (1,1)) of the zone is, depending on where the user clicked.
Only inner tiles are recognized, and possibly not even complete (ie stadium while game is playing).
id | Tile character value of the tile that the user clicked on. | |
deltaHPtr | Pointer where horizontal position correction is written to. | |
deltaVPtr | Pointer where vertical position correction is written to. |
0
if clicked outside zone). Definition at line 394 of file tool.cpp.
References COALSMOKE3, NUCLEAR, PORT, POWERPLANT, and STADIUM.
Referenced by Micropolis::bulldozerTool().
const BuildingProperties airportBuilding [static] |
Initial value:
BuildingProperties(6, 6, AIRPORTBASE, TOOL_AIRPORT, "Airp", false)
const BuildingProperties coalPowerBuilding [static] |
Initial value:
BuildingProperties(4, 4, COALBASE, TOOL_COALPOWER, "Coal", false)
const BuildingProperties commercialZoneBuilding [static] |
Initial value:
BuildingProperties(3, 3, COMBASE, TOOL_COMMERCIAL, "Com", false)
const BuildingProperties fireStationBuilding [static] |
Initial value:
BuildingProperties(3, 3, FIRESTBASE, TOOL_FIRESTATION, "Fire", false)
const short gCostOf[] [static] |
Initial value:
{ 100, 100, 100, 500, 500, 0, 5, 1, 20, 10, 5000, 10, 3000, 3000, 5000, 10000, 100, 0, 0, 0, 0, }
const short gToolSize[] [static] |
Initial value:
{ 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 4, 1, 4, 4, 4, 6, 1, 1, 1, 1, 0, }
short idArray[29] [static] |
Initial value:
{ DIRT, RIVER, TREEBASE, RUBBLE, FLOOD, RADTILE, FIRE, ROADBASE, POWERBASE, RAILBASE, RESBASE, COMBASE, INDBASE, PORTBASE, AIRPORTBASE, COALBASE, FIRESTBASE, POLICESTBASE, STADIUMBASE, NUCLEARBASE, HBRDG0, RADAR0, FOUNTAIN, INDBASE2, FOOTBALLGAME1, VBRDG0, 952, 956, 9999, }
const BuildingProperties industrialZoneBuilding [static] |
Initial value:
BuildingProperties(3, 3, INDBASE, TOOL_INDUSTRIAL, "Ind", false)
const BuildingProperties nuclearPowerBuilding [static] |
Initial value:
BuildingProperties(4, 4, NUCLEARBASE, TOOL_NUCLEARPOWER, "Nuc", true)
const BuildingProperties policeStationBuilding [static] |
Initial value:
BuildingProperties(3, 3, POLICESTBASE, TOOL_POLICESTATION, "Pol", false)
const BuildingProperties residentialZoneBuilding [static] |
Initial value:
BuildingProperties(3, 3, RESBASE, TOOL_RESIDENTIAL, "Res", false)
const BuildingProperties seaportBuilding [static] |
Initial value:
BuildingProperties(4, 4, PORTBASE, TOOL_SEAPORT, "Seap", false)
const BuildingProperties stadiumBuilding [static] |
Initial value:
BuildingProperties(4, 4, STADIUMBASE, TOOL_STADIUM, "Stad", false)