X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.cpp;h=b2bb052e035868fe2ef559d6834e0272c7c2a150;hb=cfdbe0ad0521045b27a60dbb1c963ea6dfdcda5a;hp=122800b519a37d459278e090a18f7da52cd47cde;hpb=113f1ee41edede8836361cc29119ea5f97104bd2;p=lugaru.git diff --git a/Source/Person.cpp b/Source/Person.cpp index 122800b..b2bb052 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -1441,6 +1441,15 @@ void Person::Puff(int whichlabel){ Sprite::MakeSprite(cloudimpactsprite, footpoint,footvel, 1,1,1, .9, .3); } +Joint& Person::getJointFor(int bodypart) { + return skeleton.joints[skeleton.jointlabels[bodypart]]; +} + +void Person::setAnimation(int animation) { + targetanimation=animation; + targetframe=0; + target=0; +} void Person::DoAnimations(){ if(!skeleton.free){