VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
DtMissileSimObjectDecorator Class Reference

This will keep track of the missile target, attacker and have an accessor to distance to target object.

Inheritance diagram for DtMissileSimObjectDecorator:
Inheritance graph
[legend]

Public Member Functions

 DtMissileSimObjectDecorator (const DtSimObject *)
 
virtual ~DtMissileSimObjectDecorator ()
 
virtual DtVector targetLocation () const
 
virtual double distanceSquaredToTarget () const
 
virtual DtVector worldVectorToTarget () const
 
virtual bool passedTarget () const
 
virtual const DtUUIDtarget () const
 
virtual const DtUUIDattacker () const
 
- Public Member Functions inherited from DtSimObjectDecorator
 DtSimObjectDecorator (const DtSimObject *)
 
 DtSimObjectDecorator (DtSimObjectReference)
 
virtual ~DtSimObjectDecorator ()
 
virtual void tick ()
 
- Public Member Functions inherited from DtDecoratorBase
 DtDecoratorBase ()
 
virtual ~DtDecoratorBase ()
 

Public Attributes

boost::signals2::signal< void()> signal_targetAttackerChanged
 
- Public Attributes inherited from DtDecoratorBase
boost::signals2::signal< void()> signal_decoratorDeleted
 

Protected Member Functions

virtual void updateMissileInformation ()
 

Protected Attributes

DtSimObjectReference myTargetObject
 
DtUUID myTarget
 
DtUUID myAttacker
 
DtVector myTargetPoint
 
boost::signals2::scoped_connection myMissileInfoUpdatedConnection
 
- Protected Attributes inherited from DtSimObjectDecorator
DtSimObjectReference mySimObject
 

Constructor & Destructor Documentation

DtMissileSimObjectDecorator::DtMissileSimObjectDecorator ( const DtSimObject )
virtual DtMissileSimObjectDecorator::~DtMissileSimObjectDecorator ( )
virtual

Member Function Documentation

virtual DtVector DtMissileSimObjectDecorator::targetLocation ( ) const
virtual

If target is valid then use the target's geocentric location, else use the location in the target location as a geocentric point. This is all only valid for VR-Forces missiles.

virtual double DtMissileSimObjectDecorator::distanceSquaredToTarget ( ) const
virtual

Returns the distance from this object (current frame) to the target, squared.

virtual DtVector DtMissileSimObjectDecorator::worldVectorToTarget ( ) const
virtual
Returns
The world coordinate vector from the current position to the target position.
virtual bool DtMissileSimObjectDecorator::passedTarget ( ) const
virtual

Returns true if this object has passed the target.

virtual const DtUUID& DtMissileSimObjectDecorator::target ( ) const
virtual
virtual const DtUUID& DtMissileSimObjectDecorator::attacker ( ) const
virtual
virtual void DtMissileSimObjectDecorator::updateMissileInformation ( )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void ()> DtMissileSimObjectDecorator::signal_targetAttackerChanged
DtSimObjectReference DtMissileSimObjectDecorator::myTargetObject
protected
DtUUID DtMissileSimObjectDecorator::myTarget
protected
DtUUID DtMissileSimObjectDecorator::myAttacker
protected
DtVector DtMissileSimObjectDecorator::myTargetPoint
protected
boost::signals2::scoped_connection DtMissileSimObjectDecorator::myMissileInfoUpdatedConnection
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)