Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

WorldMap Class Reference

List of all members.

Detailed Description

Class to get all towns and guilds (including player names and guild colors).

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.

.

Author:
Robert Vock <smir@andaloria.de>

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 & Destructor Documentation

WorldMap::WorldMap &$  oDB,
&$  oUser
 

constructor.

set DB object

Parameters:
$oDB reference to database object
$oUser reference to the User object

Definition at line 40 of file lib/worldmap.php.

References $oDB, and $oUser.


Member Function Documentation

WorldMap::getGuilds  ) 
 

get guilds

Definition at line 93 of file lib/worldmap.php.

References $aRow, and $sqlResult.

WorldMap::getTowns intFields = 1,
intZoom = 1,
intX = 0,
intY = 0,
strFilter = '
 

get a list of towns.

Parameters:
$intFields 
$intZoom zoom for the map, possible values are 1, 2, 4
$intX x quadrant (not x coordinate)
$intY y quadrant (not y coordinate)
$strFilter filter some guilds (filter is given as string of ids, sperated by _ )

Definition at line 54 of file lib/worldmap.php.

References $aRow, $result, and $strFilter.


Member Data Documentation

WorldMap::$oDB
 

DB object.

Definition at line 31 of file lib/worldmap.php.

Referenced by WorldMap().

WorldMap::$oUser
 

reference to user object

Definition at line 32 of file lib/worldmap.php.

Referenced by WorldMap().


The documentation for this class was generated from the following file:
Generated on Sun May 8 19:29:46 2005 for PhpMap by  doxygen 1.4.2