PersonType::PersonType()
{
animTalkIdle = tempanim;
+ animHurtIdle = tempanim;
}
bool PersonType::hasAnimTalkIdle()
return (animTalkIdle != tempanim);
}
+bool PersonType::hasAnimHurtIdle()
+{
+ return (animHurtIdle != tempanim);
+}
+
void PersonType::Load()
{
types.resize(2);
types[rabbittype].animFightIdle = fightidleanim;
types[rabbittype].animBounceIdle = bounceidleanim;
types[rabbittype].animTalkIdle = talkidleanim;
+ types[rabbittype].animHurtIdle = hurtidleanim;
types[rabbittype].soundsAttack[0] = rabbitattacksound;
types[rabbittype].soundsAttack[1] = rabbitattack2sound;