named members m_* to quite -Wshadow
[physics.git] / src / Entities / Line.h
index e6159d1..d013234 100644 (file)
 #ifndef LINE_H
 #define LINE_H
 
+#include <bear/Vector2.h>
+using namespace bear;
+
 #include "Particle.h"
-#include "Vector2.h"
 
 
 /// ***** Header Class *****
 class Line: public Particle
 {
     public:
-        Line(const Vector2&, const Vector2&, bool=true);
-        Line(const Vector2&, const Vector2&, float);
+        Line(const Vector2& org, const Vector2& dest, bool canDie=true);
+        Line(const Vector2& org, const Vector2& dest, float life_time);
         virtual ~Line();
 
         virtual void draw();
 
      protected:
-        Vector2 dest;
+        Vector2 m_dest;
 
         // triangle stuffs
         // color