src/PhysicsWorld.hh
changeset 225 22ecb9cb9245
parent 222 293ddf4c067d
child 255 99431fdb0dc8
equal deleted inserted replaced
224:e6faefba2ec1 225:22ecb9cb9245
    41     // Someone is going to kill me for this
    41     // Someone is going to kill me for this
    42     Timer tick_timer;
    42     Timer tick_timer;
    43 
    43 
    44     PhysicsWorld(Vector gravity, Vector dimensions);
    44     PhysicsWorld(Vector gravity, Vector dimensions);
    45 
    45 
    46    /**
    46     /**
    47      * Add object to the PhysicsWorld.
    47      * Add object to the PhysicsWorld.
    48      *
    48      *
    49      * @param object Pointer to the PhysicsObject to add.
    49      * @param object Pointer to the PhysicsObject to add.
    50      */
    50      */
    51     void addPhysicsObject(PhysicsObject *object);
    51     void addPhysicsObject(PhysicsObject *object);
       
    52     
       
    53     /**
       
    54      * Remove the object from the PhysicsWorld.
       
    55      */
       
    56     void removePhysicsObject (PhysicsObject *po);
    52     
    57     
    53     /**
    58     /**
    54      * Advance one time step in physics simulation.
    59      * Advance one time step in physics simulation.
    55      */
    60      */
    56     void tick(TimeMS tick_length);
    61     void tick(TimeMS tick_length);
    59      * Get current tick in physics simulation.
    64      * Get current tick in physics simulation.
    60      *
    65      *
    61      * @return tick Current simulation tick.
    66      * @return tick Current simulation tick.
    62      */
    67      */
    63     uint32_t getTick();
    68     uint32_t getTick();
    64 
       
    65     // TODO This should probably be protected or in GameStat or in GameStatee
       
    66 };
    69 };
    67 
    70 
    68 #endif 
    71 #endif