Class Character

Description

Class tat realize the character.

  • author: Libor Tichy

Located in /Character/CharacterModel.php (line 15)


	
			
Class Constant Summary
Variable Summary
string $name
Method Summary
static string getCharacterName (mixed $characterId)
static void giveCashTo (mixed $characterId, int $amount)
Character __construct ([mixed $characterId = null])
int getDeffense ()
int getOffense ()
void giveCash (int $amount)
boolean isChased ()
integer moveTime ()
void save (void 0)
void saveCharacter ()
void savePosition ()
void setChased ()
void setPicture (string $picture)
void setWeapon (Weapon $weapon)
Character[] showNearby ()
void stop ()
void takeCash (int $amount)
mixed &__get (string $item)
Variables
string $name (line 20)
  • access: public
Methods
static getCharacterName (line 269)

Returns charater name.

  • access: public
static string getCharacterName (mixed $characterId)
  • mixed $characterId
static giveCashTo (line 257)

Give cash to chraracter.

  • access: public
static void giveCashTo (mixed $characterId, int $amount)
  • mixed $characterId
  • int $amount
Constructor __construct (line 51)
  • access: public
Character __construct ([mixed $characterId = null])
  • mixed $characterId: character ID
getDeffense (line 228)

How strange id character deffense?

  • access: public
int getDeffense ()
getOffense (line 220)

How strange id character offense?

  • access: public
int getOffense ()
giveCash (line 247)

Give cash to chraracter.

  • access: public
void giveCash (int $amount)
  • int $amount
isChased (line 212)

After attack thief hs to stay at the place.

  • access: public
boolean isChased ()
moveTime (line 180)

Calculates the time to end of the move

  • access: public
integer moveTime ()
save (line 129)

Saves character and position.

  • access: public
void save (void 0)
  • void 0
saveCharacter (line 156)

Saves to DB only information about the character

  • access: public
void saveCharacter ()
savePosition (line 101)

Saves characters osition to the DB.

  • throws: Exception
  • access: public
void savePosition ()
setChased (line 199)

Sets the character to state chased.

  • access: public
void setChased ()
setDefaultPosition (line 85)

Sets the user to default position - Bank.

  • access: public
void setDefaultPosition ()
setPicture (line 139)

Sets the picture of te character.

  • access: public
void setPicture (string $picture)
  • string $picture: property name
setWeapon (line 148)

Sets the weapon that the character holds.

  • access: public
void setWeapon (Weapon $weapon)
showNearby (line 278)

Shows character in the street, that are nerby.

  • access: public
Character[] showNearby ()
stop (line 188)

Stops moveing of character.

  • access: public
void stop ()
takeCash (line 237)

Take cash from chraracter.

  • access: public
void takeCash (int $amount)
  • int $amount
__get (line 297)

Returns character value.

  • access: public
mixed &__get (string $item)
  • string $item: property name
Class Constants
VIEWDISTANCE = 2 (line 46)

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