ComplexPhysicalComponent Class Reference

Inherits PhysicalComponent.

Collaboration diagram for ComplexPhysicalComponent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DEFAULT_COMPONENT_CONSTRUCTOR (PhysicalComponent, ComplexPhysicalComponent, INIT1(m_bLocalCollisions, false),,)
virtual void Update (const int nDelta)
 Can be overridden to implement logic that is called on every game update.
virtual void ToStream (std::ostream &stream) const
 Empty implementation.
virtual void FromStream (std::istream &stream)
 Empty implementation.
virtual bool FromAttribute (const Attribute *pRoot)
 Can be overriden to implement custom loading functionality from an AttributeTree.
const std::string & GetMainPart () const
template<class T >
boost::shared_ptr< T > CreateCollisionHull (const std::string &type)
void ConstructBodyPart (const std::string &name, const Vector2 &position, float fRotation, float fMass, float fLinearDamping, float fAngularDamping, bool bFixRotation, bool bBullet, bool bIsMain, BaseCollisionHullPtr pCollisionHull)
void TurnOnLocalCollisions ()
void TurnOffLocalCollisions ()
bool GetBodyPart (const std::string &name, BodyPart **pBodyPartOut)
bool RemoveBodyPart (const std::string &name)
bool ConstructDistanceConstraint (const std::string &name, const std::string &body1, const std::string &body2, const DistanceJoint &jointInfo)
bool ConstructRevoluteConstraint (const std::string &name, const std::string &body1, const std::string &body2, const RevoluteJoint &jointInfo)
bool ConstructPrismaticConstraint (const std::string &name, const std::string &body1, const std::string &body2, const PrismaticJoint &jointInfo)
bool ConstructPulleyConstraint (const std::string &name, const std::string &body1, const std::string &body2, const PulleyJoint &jointInfo)
bool ConstructGearConstraint (const std::string &name, const std::string &body1, const std::string &body2, const GearJoint &jointInfo)
bool GetConstraint (const std::string &name, Constraint **ppConstraintOut)
bool RemoveConstraint (const std::string &name)

Member Function Documentation

bool ComplexPhysicalComponent::FromAttribute ( const Attribute pRoot  )  [virtual]

Can be overriden to implement custom loading functionality from an AttributeTree.

Parameters:
pRoot A pointer to the root of the attribute tree for this component.
Returns:
If false is returned then loading was a failure and the component will not be added to the game entity.

Implements AbstractComponent.

void ComplexPhysicalComponent::Update ( const int  nDelta  )  [virtual]

Can be overridden to implement logic that is called on every game update.

Parameters:
nDelta The time between this frame and last (in ms).

Implements AbstractComponent.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on Fri Nov 20 15:29:20 2009 for PhysTank by  doxygen 1.6.1