Class buildingFunctions

Description

Functions for class buildingMainPage.

Located in /lib/php/buildingfuncs.php (line 33)


	
			
Method Summary
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
getCurentRound (line 150)

Called from buildinglist.php getCurentRound method.

Calls buildingfuncs_db.php's getCurentRound() method

integer getCurentRound (mixed $connection)
tryToBuild (line 68)

Called from buildinglist.php tryToBuild method.

Calls buildingfuncs_db.php's buildBuilding method.

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

Called from buildinglist.php tryToDemo method.

Calls buildingfuncs_db.php's demolishBuilding method.

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

Called from buildinglist.php tryToSetImportance method.

Calls buildingfuncs_db.php's setImportance method if the requested value is between 0 and the amount of the buildings exists in the game.

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

Called from buildinglist.php tryToStop method.

Calls buildingfuncs_db.php's stopBuilding method if the requested value is correct ie. there are at least as many buildings under construction as many requested to stop.

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