Changeset 3462

Show
Ignore:
Timestamp:
02/26/10 20:25:38 (5 months ago)
Author:
trichards
Message:

Minor formatting cleanups to I_PhysicsActor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Physics/I_PhysicsActor.hpp

    r3348 r3462  
    7171    class I_TransformEventData; 
    7272    class I_ApplyForcesEventData; 
    73         class I_BeginCollisionEventData; 
     73    class I_BeginCollisionEventData; 
    7474    class I_DuringCollisionEventData; 
    7575    class I_EndCollisionEventData; 
     
    8484    typedef Event::Event<I_TransformEventData&>             TransformEvent_type; 
    8585    typedef Event::Event<I_ApplyForcesEventData&>           ApplyForcesEvent_type; 
    86         typedef Event::Event<I_BeginCollisionEventData&>        BeginCollisionEvent_type; 
    87         typedef Event::Event<I_DuringCollisionEventData&>       DuringCollisionEvent_type; 
    88         typedef Event::Event<I_EndCollisionEventData&>          EndCollisionEvent_type; 
    89         typedef Memory::managed_ptr<Zen::Engine::Core::I_GameObject> pGameObject_type; 
     86    typedef Event::Event<I_BeginCollisionEventData&>        BeginCollisionEvent_type; 
     87    typedef Event::Event<I_DuringCollisionEventData&>       DuringCollisionEvent_type; 
     88    typedef Event::Event<I_EndCollisionEventData&>          EndCollisionEvent_type; 
     89    typedef Memory::managed_ptr<Zen::Engine::Core::I_GameObject> pGameObject_type; 
    9090    /// @} 
    9191 
     
    9393    /// @{ 
    9494public: 
    95         /// Set the game object associated with this physics actor. 
    96         virtual void setGameObject(pGameObject_type _pGameObject) = 0; 
    97  
    98         /// Get the game object associated with this physics actor. 
    99         virtual pGameObject_type getGameObject() = 0; 
     95    /// Set the game object associated with this physics actor. 
     96    virtual void setGameObject(pGameObject_type _pGameObject) = 0; 
     97 
     98    /// Get the game object associated with this physics actor. 
     99    virtual pGameObject_type getGameObject() = 0; 
    100100 
    101101    virtual void setCollisionShape(pCollisionShape_type _pCollisionShape) = 0; 
     
    162162 
    163163    /// @todo Use I_PhysicsGroup& instead of int. 
    164         virtual void setCollisionGroup(const int _group) = 0; 
     164    virtual void setCollisionGroup(const int _group) = 0; 
    165165 
    166166    /// @todo Use I_PhysicsGroup& instead of int. 
    167         virtual const int getCollisionGroup() const = 0; 
     167    virtual const int getCollisionGroup() const = 0; 
    168168    /// @} 
    169169 
     
    194194    ApplyForcesEvent_type onApplyForcesEvent; 
    195195 
    196         /// This event is fired once the Axis Aligned Bounding Box (AABB) of the shape intersects that of another 
    197         BeginCollisionEvent_type onBoundBoxCollisionEvent; 
    198  
    199         /// This event is fired while the physics engine determines two objects are colliding 
    200         DuringCollisionEvent_type onCollisionEvent; 
    201  
    202         /// This event is fired after the physics engine determines two objects are colliding and acts on it 
    203         EndCollisionEvent_type onCollisionResolutionEvent; 
     196    /// This event is fired once the Axis Aligned Bounding Box (AABB) of the shape intersects that of another 
     197    BeginCollisionEvent_type onBoundBoxCollisionEvent; 
     198 
     199    /// This event is fired while the physics engine determines two objects are colliding 
     200    DuringCollisionEvent_type onCollisionEvent; 
     201 
     202    /// This event is fired after the physics engine determines two objects are colliding and acts on it 
     203    EndCollisionEvent_type onCollisionResolutionEvent; 
    204204    /// @} 
    205205 
     
    217217    { 
    218218    public: 
    219         /// Get the Physics Shape related to this event. 
    220         virtual I_PhysicsActor& getActor() = 0; 
    221  
    222         /// Get the matrix of the future transform. 
    223         virtual const Math::Matrix4& getTransform() const = 0; 
     219    /// Get the Physics Shape related to this event. 
     220    virtual I_PhysicsActor& getActor() = 0; 
     221 
     222    /// Get the matrix of the future transform. 
     223    virtual const Math::Matrix4& getTransform() const = 0; 
    224224 
    225225    protected: 
     
    349349 
    350350    /// @} 
    351         public: 
    352                 bool m_IsStatic; 
    353                 Math::Real m_mass; 
     351 
    354352};  // interface I_PhysicsActor 
    355353