]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Animation/Muscle.cpp
Using initialization list in Muscle constructor
[lugaru.git] / Source / Animation / Muscle.cpp
index 627b8e067eda4eea98d889251dee78dd9227a301..da8c64c663a1f5cd14dfd88a9c84d20262d1656d 100644 (file)
@@ -18,31 +18,28 @@ You should have received a copy of the GNU General Public License
 along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "Animation/Muscle.h"
-#include "binio.h"
+#include "Animation/Muscle.hpp"
+
+#include "Utils/binio.h"
 
 extern float multiplier;
 extern bool freeze;
 
-Muscle::Muscle()
-{
-    length = 0;
-    targetlength = 0;
-    parent1 = 0;
-    parent2 = 0;
-    maxlength = 0;
-    minlength = 0;
-    type = boneconnect;
-    visible = 0;
-    rotate1 = 0, rotate2 = 0, rotate3 = 0;
-    lastrotate1 = 0, lastrotate2 = 0, lastrotate3 = 0;
-    oldrotate1 = 0, oldrotate2 = 0, oldrotate3 = 0;
-    newrotate1 = 0, newrotate2 = 0, newrotate3 = 0;
-
-    strength = 0;
-}
-
-Muscle::~Muscle()
+Muscle::Muscle() :
+    length(0),
+    targetlength(0),
+    parent1(0),
+    parent2(0),
+    maxlength(0),
+    minlength(0),
+    type(boneconnect),
+    visible(false),
+    rotate1(0), rotate2(0), rotate3(0),
+    lastrotate1(0), lastrotate2(0), lastrotate3(0),
+    oldrotate1(0), oldrotate2(0), oldrotate3(0),
+    newrotate1(0), newrotate2(0), newrotate3(0),
+
+    strength(0)
 {
 }