X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.cpp;h=107edb4f436f80b8882a6943aa9bbc40017c105a;hb=6f3fa5a970fa12cf6529c56a1f859b2668a8a232;hp=e20023274988cdd66e4b0ce4bbe9a338e894e841;hpb=797dc38c1623b98280500df2ab37edba4effabea;p=lugaru.git diff --git a/Source/Person.cpp b/Source/Person.cpp index e200232..107edb4 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -217,50 +217,18 @@ int Person::getRun(){ return 0; } -bool Person::isStop(){ - if(targetanimation==stopanim||targetanimation==wolfstopanim)return 1; - else return 0; -} - - -bool Person::wasStop(){ - if(currentanimation==stopanim||currentanimation==wolfstopanim)return 1; - else return 0; -} int Person::getStop(){ if(creature==rabbittype)return stopanim; if(creature==wolftype)return wolfstopanim; return 0; } - -bool Person::isLanding(){ - if(targetanimation==landanim||targetanimation==wolflandanim)return 1; - else return 0; -} - - -bool Person::wasLanding(){ - if(currentanimation==landanim||currentanimation==wolflandanim)return 1; - else return 0; -} int Person::getLanding(){ if(creature==rabbittype)return landanim; if(creature==wolftype)return wolflandanim; return 0; } - -bool Person::isLandhard(){ - if(targetanimation==landhardanim||targetanimation==wolflandhardanim)return 1; - else return 0; -} - - -bool Person::wasLandhard(){ - if(currentanimation==landhardanim||currentanimation==wolflandhardanim)return 1; - else return 0; -} int Person::getLandhard(){ if(creature==rabbittype)return landhardanim; if(creature==wolftype)return wolflandhardanim; @@ -268,16 +236,6 @@ int Person::getLandhard(){ } -bool Person::isFlip(){ - if(targetanimation==flipanim||targetanimation==frontflipanim||targetanimation==backflipanim||targetanimation==rightflipanim||targetanimation==leftflipanim||targetanimation==walljumprightkickanim||targetanimation==walljumpleftkickanim)return 1; - else return 0; -} - -bool Person::wasFlip(){ - if(currentanimation==flipanim||currentanimation==frontflipanim||currentanimation==backflipanim||currentanimation==rightflipanim||currentanimation==leftflipanim||currentanimation==walljumprightkickanim||currentanimation==walljumpleftkickanim)return 1; - else return 0; -} - bool Person::isWallJump(){ if(targetanimation==walljumpfrontanim||targetanimation==walljumpbackanim||targetanimation==walljumpleftanim||targetanimation==walljumprightanim)return 1; else return 0;