QcMobCommands Class
/mob (decision E-510), for operators: changes a creature the player names by nearest (the nearest within targetRange), looking (the one in the player's view) or its entity id. More...
| Header: | #include <server/commands/QcMobCommands.h> |
Public Functions
| void | addTo(QcCommandRegistry ®istry) |
Static Public Members
| void | setNoAi(QcServerState &state, QcCreature &mob, bool noAi) |
| const double | targetRange |
Detailed Description
`noai <on|off>` takes its mind away or gives it back (QcCreature::noAi); a creature without a mind is kept with the world (QcMobManager::keep) so it stays as it was left, and stays kept when its mind comes back.
Member Function Documentation
void QcMobCommands::addTo(QcCommandRegistry ®istry)
Adds the commands of this group (see the class) to registry.
[static] void QcMobCommands::setNoAi(QcServerState &state, QcCreature &mob, bool noAi)
Takes the mind of mob in state away (noAi true) or gives it back; one without a mind is kept with the world.
Member Variable Documentation
const double QcMobCommands::targetRange
How far nearest and looking reach (metres).