IMS2  Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
ModifyTrackingAnimationEvent Class Reference

Event that signals a tracking animation that the target has been modified or it should change its speed/direction. More...

Inheritance diagram for ModifyTrackingAnimationEvent:
ModifyAnimationEvent AnimationEvent_Base Event_Base

Public Member Functions

 ModifyTrackingAnimationEvent (string animationid, double _speed, OBJHANDLE trackingtarget)
 
OBJHANDLE GetTrackingTarget ()
 
- Public Member Functions inherited from ModifyAnimationEvent
 ModifyAnimationEvent (string animationid, double _speed)
 
double GetSpeed ()
 
- Public Member Functions inherited from AnimationEvent_Base
 AnimationEvent_Base (EVENTTYPE type, string animationid, int _delay)
 
string GetAnimationId ()
 
virtual bool operator== (Event_Base *e)
 
- Public Member Functions inherited from Event_Base
 Event_Base (EVENTTYPE _type, unsigned int _delay=0)
 
EventHandlerGetCaller ()
 Returns the EventHandler at which this event originated.
 
virtual bool operator!= (Event_Base *e)
 
virtual bool operator== (EVENTTYPE type)
 Allows to compare an event directly to an EVENTTYPE. More...
 
EVENTPIPE GetEventPipe ()
 

Private Attributes

OBJHANDLE target
 Stores the target the animation should start tracking.
 

Additional Inherited Members

- Protected Member Functions inherited from Event_Base
virtual bool sendMe ()
 Used to determine whether the event should be sent by the event generator. More...
 
- Protected Attributes inherited from ModifyAnimationEvent
double speed
 An abstract property for how fast the animation should play, and in which direction. More...
 
- Protected Attributes inherited from AnimationEvent_Base
string animid
 Stores the identifier of the animation this event is aimed at.
 
- Protected Attributes inherited from Event_Base
unsigned int delay
 How many calls of ProcessEvents() on the event generator the event should be delayed.
 
EventHandlercaller
 Stores the EventHandler at which the event originated.
 
EVENTTYPE eventtype
 The type of this event.
 
EVENTPIPE pipe
 The pipe the event travels in (unless it was relayed). This is set by the EventHandler itself.
 

Detailed Description

Event that signals a tracking animation that the target has been modified or it should change its speed/direction.

Does not trigger a direct response. Is indistinguishable from ModifyAnimationEvent when aimed at a non-tracking animation

See also
TrackingAnimationStatusEvent
EventHandler.h

Constructor & Destructor Documentation

ModifyTrackingAnimationEvent::ModifyTrackingAnimationEvent ( string  animationid,
double  _speed,
OBJHANDLE  trackingtarget 
)
inline
Parameters
animationidIdentifier of the tracking animation the event is aimed at
_speedThe speed the animation should move at
trackingtargetThe objhandle of the object to track

Member Function Documentation

OBJHANDLE ModifyTrackingAnimationEvent::GetTrackingTarget ( )
inline
Returns
A handle to the object the animation should be tracking

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