Class: Mobile
SOURCE LOCATION: /dpuniverse/npc/mobile.php
Class Overview
|
A mobile computer generated character
Creates the following DutchPIPE properties:
- boolean isSilent - Set to FALSE
- boolean isNoCleanUp - Set to TRUE
DpProperties
|
--DpObject
|
--DpLiving
|
--DpNpc
|
--Mobile
|
METHODS:
|
Methods Summary
| boolean |
actionKick() |
Gives the mobile a good hard kick! |
| boolean |
actionSilence() |
Toggles between silent/talking&moving mode, admininistators only |
| void |
createDpNpc() |
Sets up the NPC at object creation time |
| void |
timeoutKicked() |
Makes the mobile complain and take a random exit |
Methods
boolean actionKick(
string
$verb , string
$noun
)
Gives the mobile a good hard kick!
| PARAMETERS: |
string |
$verb |
the action, "kick" |
| string |
$noun |
who to kick, could be empty |
| RETURNS: | boolean | TRUE for action completed, FALSE otherwise |
boolean actionSilence(
string
$verb , string
$noun
)
Toggles between silent/talking&moving mode, admininistators only
| PARAMETERS: |
string |
$verb |
the action, "silence!" |
| string |
$noun |
who to silence, could be empty |
| RETURNS: | boolean | TRUE for action completed, FALSE otherwise |
void createDpNpc(
)
Sets up the NPC at object creation time
void randomWalk(
)
Leaves through a random link
timeoutHeartBeat [line 91]
void timeoutHeartBeat(
)
Called each 'heartbeat', randomly chat and wander
void timeoutKicked(
)
Makes the mobile complain and take a random exit
|
|