src/PhysicsObject.hh
changeset 257 549783d71e51
parent 255 99431fdb0dc8
child 264 215de3d4de60
--- a/src/PhysicsObject.hh	Sun Dec 07 20:08:28 2008 +0000
+++ b/src/PhysicsObject.hh	Sun Dec 07 20:25:57 2008 +0000
@@ -162,28 +162,28 @@
      *
      * @return Position vector
      */
-    Vector getPosition (void);
+    Vector getPosition (void) const;
 
     /**
      * Get current object screen coordinates
      *
      * @return PixelCoordinate position
      */
-    PixelCoordinate getCoordinate (void);
+    PixelCoordinate getCoordinate (void) const;
 
     /**
      * Get current object velocity.
      *
      * @return Velocity vector
      */
-    Vector getVelocity();
+    Vector getVelocity() const;
 
     /**
      * Return object shape.
      *
      * @return Polygon points
      */
-    std::vector<Vector>& getShape();
+    const std::vector<Vector>& getShape() const;
 
     /**
      * Set object shape.
@@ -197,19 +197,19 @@
      *
      * @return Object facing (true if facing right)
      */
-    bool getFacing();
+    bool getFacing() const;
 
     /**
      * Return object aim angle.
      *
      * @return Object aim angle
      */
-    float getAim();
+    float getAim() const;
 
     /**
      * Returns facing+aim as a unit vector
      */
-    Vector getDirection (void);
+    Vector getDirection (void) const;
 
     /**
      *  Mark object as destroyed, it will be delete'd later