X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects%2FPersonType.cpp;h=41d07c2483749444ba3f227c1ad8ac58c656bead;hb=7aa870825c0e851e69703d9730e20db6eb94a675;hp=521a02cf2bf956fc8f8e50713e2a71a87af69ad9;hpb=bb302fb1d9936b1ab630a800698ab7b867472a7d;p=lugaru.git diff --git a/Source/Objects/PersonType.cpp b/Source/Objects/PersonType.cpp index 521a02c..41d07c2 100644 --- a/Source/Objects/PersonType.cpp +++ b/Source/Objects/PersonType.cpp @@ -24,6 +24,7 @@ std::vector PersonType::types; PersonType::PersonType() { animTalkIdle = tempanim; + animHurtIdle = tempanim; } bool PersonType::hasAnimTalkIdle() @@ -31,6 +32,11 @@ bool PersonType::hasAnimTalkIdle() return (animTalkIdle != tempanim); } +bool PersonType::hasAnimHurtIdle() +{ + return (animHurtIdle != tempanim); +} + void PersonType::Load() { types.resize(2); @@ -80,6 +86,8 @@ void PersonType::Load() types[wolftype].defaultScale = .23; types[wolftype].hasClaws = true; types[wolftype].clothes = false; + types[wolftype].maxRunSpeed = 75; + types[wolftype].knifeCatchingType = 1; /* Rabbit */ types[rabbittype].proportions[0] = 1.2; @@ -97,6 +105,7 @@ void PersonType::Load() 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; @@ -135,4 +144,6 @@ void PersonType::Load() types[rabbittype].defaultScale = .2; types[rabbittype].hasClaws = false; types[rabbittype].clothes = true; + types[rabbittype].maxRunSpeed = 55; + types[rabbittype].knifeCatchingType = 0; }