Class Crime

Description

Represents the crime protocol.

  • author: Libor Tichy

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

NObject
   |
   --Crime
Variable Summary
int $attacker
string $attackerName
int $victim
string $victimName
Method Summary
Crime __construct ([ $crimeId = null])
void autoSetText ()
void save ()
void setAmount (int $amount)
void setAttacker (mixed $attacker)
void setAttackerName (string $name)
void setText (string $text)
void setTime (int $time)
void setVictim (mixed $victimId)
void setVictimName (string $name)
void setVisited ()
mixed &__get (string $item)
Variables
int $attacker (line 26)
  • access: public
string $attackerName (line 28)
  • access: public
int $victim (line 22)
  • access: public
string $victimName (line 24)
  • access: public
Methods
Constructor __construct (line 38)
  • access: public
Crime __construct ([ $crimeId = null])
  • $crimeId
autoSetText (line 126)

Sets the text of the protocol automaticaly.

  • access: public
void autoSetText ()
save (line 157)

Seves this protocol to the database.

  • access: public
void save ()
setAmount (line 78)

Sets the amount that was stolen.

  • access: public
void setAmount (int $amount)
  • int $amount
setAttacker (line 100)

Sets the attacker.

  • access: public
void setAttacker (mixed $attacker)
  • mixed $attacker
setAttackerName (line 60)

Sets the name of the attacker.

  • access: public
void setAttackerName (string $name)
  • string $name
setText (line 118)

Sets the text of the protocol.

  • access: public
void setText (string $text)
  • string $text
setTime (line 109)

Sets the time of the attack.

  • access: public
void setTime (int $time)
  • int $time
setVictim (line 91)

Sets the victim.

  • access: public
void setVictim (mixed $victimId)
  • mixed $victimId
setVictimName (line 69)

Sets the name of the victim.

  • access: public
void setVictimName (string $name)
  • string $name
setVisited (line 149)

Mark this protocol visited.

  • access: public
void setVisited ()
__get (line 181)

Returns user data value.

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

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