QcPetCare Class
Players using items on tameable creatures (decision E-480): a taming item tames a wild one with its chance (a wolf becomes a dog; the pet sits at first and belongs to the player's identity, QcPetOwners); on a tame one, healing food heals it, a dye colours its collar, and anything else (an empty hand too) makes it sit or stand up, all only for its owner except healing. More...
| Header: | #include <server/animals/QcPetCare.h> |
Public Functions
| bool | use(QcServerClient &client, quint32 mobId) |
Static Public Members
| void | tame(QcEntities &entities, const QcContentRegistry &content, QcCreature &mob, const QString &owner) |
Detailed Description
Member Function Documentation
[static] void QcPetCare::tame(QcEntities &entities, const QcContentRegistry &content, QcCreature &mob, const QString &owner)
Makes mob (among entities, kinds from content) the pet of the owner key owner: its tame kind (QcTameDefinition::becomes), sitting, its kind's collar, kept with the world. World setups (the showcase) tame with a made-up key.
bool QcPetCare::use(QcServerClient &client, quint32 mobId)
Uses the item held by the player of client (or the empty hand) on the creature mobId; returns false when this is no use of a tameable creature (the use goes on to feeding, catching or eating).