The WorldMap class provides an interface to get a list of all towns and guilds. Basically you need it to get the necessary data to fill the worldmap.
Use getTowns() to retrieve a list of towns including the player`s name and getGuilds() to get all guilds including the colors.
.
Definition at line 29 of file lib/worldmap.php.
Public Member Functions | |
| WorldMap (&$oDB, &$oUser) | |
| constructor. | |
| getTowns ($intFields=1, $intZoom=1, $intX=0, $intY=0, $strFilter= ') | |
| get a list of towns. | |
| getGuilds () | |
| get guilds | |
Public Attributes | |
| $oDB | |
| DB object. | |
| $oUser | |
| reference to user object | |
|
||||||||||||
|
constructor. set DB object
Definition at line 40 of file lib/worldmap.php. |
|
|
get guilds
Definition at line 93 of file lib/worldmap.php. References $aRow, and $sqlResult. |
|
||||||||||||||||||||||||
|
get a list of towns.
Definition at line 54 of file lib/worldmap.php. References $aRow, $result, and $strFilter. |
|
|
DB object.
Definition at line 31 of file lib/worldmap.php. Referenced by WorldMap(). |
|
|
reference to user object
Definition at line 32 of file lib/worldmap.php. Referenced by WorldMap(). |
1.4.2