typos
[k8-i-v-a-n.git] / src / game / humans / humanoid_genie.cpp
blob0f22cd87dbaa5921fc4d2d0a9d92d1a92c8e87ab
1 #ifdef HEADER_PHASE
2 CHARACTER(genie, humanoid)
4 public:
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(); }
9 };
12 #else
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();
26 else
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;
36 #endif