Class buildingMainPage

Description

Creates the building-page.

Located in /buildinglist.php (line 23)


	
			
Method Summary
buildingMainPage buildingMainPage (mixed $countryID)
void addTable ()
integer getCurentRound (mixed $connection)
text tryToBuild (mixed $building, mixed $amount, mixed $countryID, mixed $connection)
text tryToDemo (mixed $building, mixed $amount, mixed $countryID, mixed $connection)
text tryToSetImportance (mixed $countryID, mixed $building, mixed $newIportance, mixed $connection)
text tryToStop (mixed $stopBuildingType, mixed $stopBuildingAmount, mixed $stopBuildingRound, mixed $countryID, mixed $connection)
Methods
Constructor buildingMainPage (line 37)

Makes the job.

Gets the setted arguments from the POST.

Initialises the Title element.

Calls the function addTable with the args to create the body.

buildingMainPage buildingMainPage (mixed $countryID)
addTable (line 83)

The real worker function.

Draws tables, forms...

void addTable ()
getCurentRound (line 764)
  • return: The curent round.
integer getCurentRound (mixed $connection)
tryToBuild (line 694)

Called in case of trying to build buildings.

Calls buildinguncs.php's same named function.

text tryToBuild (mixed $building, mixed $amount, mixed $countryID, mixed $connection)
tryToDemo (line 670)

Called in case of trying to demolish an existing building.

Calls buildinguncs.php's same named function.

text tryToDemo (mixed $building, mixed $amount, mixed $countryID, mixed $connection)
tryToSetImportance (line 719)

Called in case of trying to set a building's importance.

Calls buildinguncs.php's same named function.

text tryToSetImportance (mixed $countryID, mixed $building, mixed $newIportance, mixed $connection)
tryToStop (line 743)

Called in case of trying to stop the construction of buildings.

Calls buildinguncs.php's same named function.

text tryToStop (mixed $stopBuildingType, mixed $stopBuildingAmount, mixed $stopBuildingRound, mixed $countryID, mixed $connection)

Documentation generated on Mon, 21 Mar 2005 22:45:33 +0100 by phpDocumentor 1.3.0RC3