00001
00002
00003
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TA_PHYSICSOBJECT_H
00015 #define TA_PHYSICSOBJECT_H
00016
00017 #ifndef TA_REFCOUNT_H
00018 #include "../Common/RefCount.h"
00019 #endif // TA_REFCOUNT_H
00020
00021 #ifndef TA_PHYSICSCOMMON_H
00022 #include "PhysicsCommon.h"
00023 #endif // TA_PHYSICSCOMMON_H
00024
00025 TA_OBFUSCATION_SKIP_PASS_2
00026
00027 namespace TA
00028 {
00029
00030 class Physics;
00031
00032 class TAPHYSICS_CLASS PhysicsObject : public RefCount
00033 {
00034 public:
00035 TA_OBFUSCATION_RESERVED_ON
00036 bool AddedToPhysics() const;
00037
00038 protected:
00039 PhysicsObject();
00040 void Initialise();
00041 void Finalise();
00042 TA_OBFUSCATION_RESERVED_OFF
00043
00044 private:
00045 friend class Physics;
00046 void SetAddedToPhysics(bool bValue) { m_bAddedToPhysics = bValue; }
00047
00048 bool m_bAddedToPhysics;
00049 };
00050
00051 inline bool PhysicsObject::AddedToPhysics() const { return m_bAddedToPhysics; }
00052 inline PhysicsObject::PhysicsObject() : RefCount() { m_bAddedToPhysics = false; }
00053 inline void PhysicsObject::Initialise() { m_bAddedToPhysics = false; }
00054 inline void PhysicsObject::Finalise() { m_bAddedToPhysics = false; }
00055
00056 }
00057
00058 #endif // TA_PHYSICSOBJECT_H
00059
© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.