]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.cpp
add include guard to Texture.h
[lugaru.git] / Source / Person.cpp
index bb99362f7e241d59b21f19de7c671a1df06ece5e..b2bb052e035868fe2ef559d6834e0272c7c2a150 100644 (file)
@@ -400,9 +400,7 @@ void Person::DoBloodBig(float howmuch,int which){
                                offsetx=Random()%20;
                        }
                        if(which==220||which==215){
-                               //offsety=Random()%20;
                                offsetx=20;
-                               //offsetx=abs(Random()%80);
                        }
 
 
@@ -1443,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){