2 CHARACTER(genie
, humanoid
)
5 virtual truth
BodyPartIsVital(int) const;
6 virtual int GetAttribute(int, truth
= true) const;
7 virtual truth
CanCreateBodyPart(int) const;
8 virtual cfestring
& GetStandVerb() const { return character::GetStandVerb(); }
16 truth
genie::BodyPartIsVital(int I
) const { return I
== TORSO_INDEX
|| I
== HEAD_INDEX
; }
20 int genie::GetAttribute(int Identifier
, truth AllowBonus
) const // temporary until someone invents a better way of doing this
22 if(Identifier
== LEG_STRENGTH
)
23 return GetDefaultLegStrength();
24 else if(Identifier
== AGILITY
)
25 return GetDefaultAgility();
27 return humanoid::GetAttribute(Identifier
, AllowBonus
);
32 truth
genie::CanCreateBodyPart(int I
) const
34 return I
== TORSO_INDEX
|| I
== HEAD_INDEX
|| I
== RIGHT_ARM_INDEX
|| I
== LEFT_ARM_INDEX
;