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

Map Class Reference

List of all members.

Detailed Description

Author:
Christian Fischer <>

Roland Schmitt <>

Carsten Bormann <jisuga@terta.kn-bremen.de>

Robert Vock <smir@andaloria.de>

Definition at line 24 of file lib/map.php.

Public Member Functions

 Map (&$oDB, $oUser)
 constructor.
 getPaletteColor ($im, $color)
 Hilfsfunktion zum erzeugen einer Palettenfarbe aus einem Hex-Wert.
 getImg ($strEffort=', $strWaytext=')
 generate and output the map image

Public Attributes

 $oDB
 DB object.
 $oUser
 user data as in user table
 $aTerrainColor
 $aTerrainText
 $aTerrainPoints
 $aBuildingText
 $aBuildingKeys
 $aColor
 $intZoom
 current zoom
 $intFieldWidth
 field width
 $intFieldHeight
 field height
 $booShowFog
 should fog be visible
 $x
 $y
 $xx
 $yy
 $xs
 $ys
 $xe
 $ye
 $xx0
 $yy0
 $xx1
 $yy1
 some other vars ;)


Constructor & Destructor Documentation

Map::Map &$  oDB,
oUser
 

constructor.

set DB object

Parameters:
$oDB reference to database object
$oUser reference to user object

Definition at line 48 of file lib/map.php.

References $aBuildingKeys, $aBuildingText, $aColor, $aTerrainColor, $aTerrainPoints, $aTerrainText, $aZoomstufen, $oDB, $oUser, intZoom, xs, and ys.


Member Function Documentation

Map::getImg strEffort = ',
strWaytext = '
 

generate and output the map image

Parameters:
$strEffort total effort needed for way (optional)
$strWaytext wayscript like in andaloria (optional)
Note:
uses class vars:
$intX center x-coordinate
$intY center y-coordinate
$intXX width in number of fields
$intYY height in number of fields
$booShowFog should the fog of war be visible?
$intZoom which zoom should be used? (0,1,2,3,4,5)
$intXs start x-coord for waycalculating (optional)
$intYs start y-coord for waycalculating (optional)

this function also sends the appropriate headers and dumps the image.
if headers are already sent, this gives junk.

Definition at line 155 of file lib/map.php.

References $aRow, $booShowFog, $i, $img, $intFieldHeight, $intFieldWidth, $intX, $intY, $intZoom, $mapdata, $result, $strFilter, $strWaytext, $x, $xx0, $xx1, $y, $yy0, $yy1, getPaletteColor(), intZoom, xs, and ys.

Map::getPaletteColor im,
color
 

Hilfsfunktion zum erzeugen einer Palettenfarbe aus einem Hex-Wert.

Definition at line 130 of file lib/map.php.

Referenced by getImg().


Member Data Documentation

Map::$aBuildingKeys
 

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

Referenced by Map().

Map::$aBuildingText
 

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

Referenced by Map().

Map::$aColor
 

Definition at line 33 of file lib/map.php.

Referenced by Map().

Map::$aTerrainColor
 

Definition at line 28 of file lib/map.php.

Referenced by Map().

Map::$aTerrainPoints
 

Definition at line 30 of file lib/map.php.

Referenced by Map().

Map::$aTerrainText
 

Definition at line 29 of file lib/map.php.

Referenced by Map().

Map::$booShowFog
 

should fog be visible

Definition at line 39 of file lib/map.php.

Referenced by getImg().

Map::$intFieldHeight
 

field height

Definition at line 38 of file lib/map.php.

Referenced by getImg().

Map::$intFieldWidth
 

field width

Definition at line 37 of file lib/map.php.

Referenced by getImg().

Map::$intZoom
 

current zoom

Definition at line 36 of file lib/map.php.

Referenced by getImg().

Map::$oDB
 

DB object.

Definition at line 26 of file lib/map.php.

Referenced by Map().

Map::$oUser
 

user data as in user table

Definition at line 27 of file lib/map.php.

Referenced by Map().

Map::$x
 

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

Referenced by getImg().

Map::$xe
 

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

Map::$xs
 

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

Map::$xx
 

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

Map::$xx0
 

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

Referenced by getImg().

Map::$xx1
 

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

Referenced by getImg().

Map::$y
 

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

Referenced by getImg().

Map::$ye
 

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

Map::$ys
 

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

Map::$yy
 

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

Map::$yy0
 

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

Referenced by getImg().

Map::$yy1
 

some other vars ;)

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

Referenced by getImg().


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