Class Place

Description

Place on the map.

  • author: Libor Tichy

Located in /World/PlaceModel.php (line 15)

NObject
   |
   --Place
Variable Summary
mixed $id
array $labels
int $position
Method Summary
Place __construct ($id $id, [$position $position = null], mixed 2)
void addLabel (mixed $key, string $name)
int distanceFrom (int $position)
string getLabel (mixed $key)
void moveHere (int $characterId)
mixed &__get (string $item)
bool __isset (string $item)
Variables
mixed $id (line 18)
  • access: public
array $labels (line 22)
  • access: public
int $position (line 20)
  • access: public
Methods
Constructor __construct (line 30)
  • access: public
Place __construct ($id $id, [$position $position = null], mixed 2)
  • mixed 2: open time in each day
  • $id $id: string buidlidng name
  • $position $position: int building position
addLabel (line 42)

Add the label to this place with specified key.

  • access: public
void addLabel (mixed $key, string $name)
  • mixed $key
  • string $name
distanceFrom (line 81)

Returns distance to the other place.

  • access: public
int distanceFrom (int $position)
  • int $position
getLabel (line 52)

Returns the label with the key.

  • throws: Exception
  • access: public
string getLabel (mixed $key)
  • mixed $key
moveHere (line 64)

Make the character moving to this place.

  • access: public
void moveHere (int $characterId)
  • int $characterId
__get (line 90)

Returns building property value.

  • access: public
mixed &__get (string $item)
  • string $item: property name
__isset (line 103)

Is property defined?

  • access: public
bool __isset (string $item)
  • string $item: property name

Documentation generated on Tue, 07 Jun 2011 20:47:28 +0200 by phpDocumentor 1.4.3