]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Weapons.h
Attempt at fixing the crash in DoAnimation
[lugaru.git] / Source / Weapons.h
index d92429c043f9019ccb4f4e2d4c137f9b19bed199..74725413b47f02a970f79167390e0bec67d714a9 100644 (file)
@@ -1,5 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -24,7 +25,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "gamegl.h"
 #include "Quaternions.h"
-#include "Skeleton.h"
+#include "Animation/Skeleton.h"
 #include "Models.h"
 #include "Terrain.h"
 #include "Sprite.h"
@@ -65,6 +66,9 @@ public:
     }
     void setType(int);
 
+    void drop(XYZ velocity, XYZ tipvelocity, bool sethitsomething = true);
+    void thrown(XYZ velocity, bool sethitsomething = true);
+
     int owner;
     XYZ position;
     XYZ tippoint;
@@ -93,7 +97,6 @@ private:
     int type;
 
     XYZ oldtippoint;
-    float lastmult;
     XYZ oldposition;
     int oldowner;
     bool onfire;