X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.cpp;h=e20023274988cdd66e4b0ce4bbe9a338e894e841;hb=797dc38c1623b98280500df2ab37edba4effabea;hp=3f643607323b49c4f8a419b3bf85d678d384b04e;hpb=4b65ff967257d8cfd673257e464c3e3e35822ec1;p=lugaru.git diff --git a/Source/Person.cpp b/Source/Person.cpp index 3f64360..e200232 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -202,32 +202,12 @@ int Person::getIdle(){ return 0; } -bool Person::isCrouch(){ - if(targetanimation==crouchanim||targetanimation==wolfcrouchanim)return 1; - else return 0; -} - - -bool Person::wasCrouch(){ - if(currentanimation==crouchanim||currentanimation==wolfcrouchanim)return 1; - else return 0; -} int Person::getCrouch(){ if(creature==rabbittype)return crouchanim; if(creature==wolftype)return wolfcrouchanim; return 0; } -bool Person::isRun(){ - if(targetanimation==runanim||targetanimation==wolfrunanim||targetanimation==wolfrunninganim||targetanimation==rabbitrunninganim)return 1; - else return 0; -} - - -bool Person::wasRun(){ - if(currentanimation==runanim||currentanimation==wolfrunanim||currentanimation==wolfrunninganim||currentanimation==rabbitrunninganim)return 1; - else return 0; -} int Person::getRun(){ if(creature==rabbittype&&(!superruntoggle||weaponactive!=-1))return runanim; if(creature==wolftype&&(!superruntoggle))return wolfrunanim;