#include <BodyPart.h>
Inheritance diagram for ogs::core::BodyPart:
Public Types | |
typedef std::list< ItemPtr > | Items |
A list of items. | |
enum | Type { HEAD = 1, EYES, LEFT_EYE, RIGHT_EYE, NECK, TORSO, BACK, ARMS, LEFT_ARM, RIGHT_ARM, HANDS, LEFT_HAND, RIGHT_HAND, WAIST, LEGS, LEFT_LEG, RIGHT_LEG, LEFT_FOOT, RIGHT_FOOT } |
A type of body part. More... | |
Public Member Functions | |
BodyPart (Creature &creature, Type type) | |
Create a new body part. | |
Creature & | getCreature () const |
Determine the creature that this body part is part of. | |
Type | getType () const |
Determine the type of this body part. | |
Items | getItems () const |
Determine the equipped items for this body part. | |
bool | equipItem (Item &item) |
Equip an item on this body part. | |
bool | unequipItem (Item &item) |
Remove an equipped or carried item from this body part. |
|
The list represents the items equipped or carried on this part of the body. |
|
This enumeration defines the omnipresent humanoid body parts. The type of body part does not have to be one of the predefined humanoid body parts. It can be any body part specific to a particular creature such as tails, wings, horns, or whatever. The type value of the body part however must not conflict with one of the predefined types |
|
The body part has no items when initially created.
|
|
If the item cannot be equipped, this function will return false.
|
|
|
|
|
|
|
|
|