]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.cpp
Some refactor about Person class.
[lugaru.git] / Source / Person.cpp
index 122800b519a37d459278e090a18f7da52cd47cde..b2bb052e035868fe2ef559d6834e0272c7c2a150 100644 (file)
@@ -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){