The Field
class provides functions to change field information.
Use add()
to add a new (dummy) town and set()
to set field properties. With get()
you can get field information and with delete()
it.
Robert Vock <smir@andaloria.de>
Definition at line 28 of file lib/field.php.
Public Member Functions | |
Field (&$oDB, &$oUser, &$oTown, &$oLog) | |
constructor. | |
get ($x, $y) | |
get infos for a field | |
set ($x, $y, $strPlayer, $strTown, $intGuild, $intType, $intRace, $intTown, $intSight) | |
update a field | |
add ($x, $y, $intTownType=-1) | |
add a new town dummy | |
delete ($x, $y) | |
delete a town from a field. | |
Public Attributes | |
$oDB | |
DB object. | |
$oUser | |
reference to user object | |
$oLog | |
Log object. | |
$aField | |
Infos for this field. | |
$oTown | |
Town object. |
|
constructor. set the objects
Definition at line 44 of file lib/field.php. |
|
add a new town dummy
Definition at line 214 of file lib/field.php. References $intTownId, and get(). |
|
delete a town from a field. If field does not exist, nothing happens
Definition at line 258 of file lib/field.php. |
|
get infos for a field
Definition at line 58 of file lib/field.php. References $aRow, and $sqlResult. |
|
update a field
Definition at line 130 of file lib/field.php. References $aRow, $booUpdate, $intGuild, $intRace, $intSight, $intType, $strPlayer, and get(). |
|
Infos for this field.
Definition at line 33 of file lib/field.php. |
|
DB object.
Definition at line 30 of file lib/field.php. Referenced by Field(). |
|
Log object.
Definition at line 32 of file lib/field.php. Referenced by Field(). |
|
Town object.
Definition at line 34 of file lib/field.php. Referenced by Field(). |
|
reference to user object
Definition at line 31 of file lib/field.php. Referenced by Field(). |