|
Public Member Functions |
| | SurroundEffect (Array< Word * > &words, double startTime, double duration=100.0, bool startPaused=true, const Vector3 &initialPosition=Vector3(0, 0, 0), float speed=0.1f, const Vector3 &range=Vector3(2, 2, 2), bool collapse=false, double collapseDuration=10.0, const Vector3 &collapseTarget=Vector3(0, 0, 0)) |
| | SurroundEffect (Word *words, double startTime, double duration=100.0, bool startPaused=true, const Vector3 &initialPosition=Vector3(0, 0, 0), float speed=0.1f, const Vector3 &range=Vector3(2, 2, 2), bool collapse=false, double collapseDuration=10.0, const Vector3 &collapseTarget=Vector3(0, 0, 0)) |
| virtual | ~SurroundEffect () |
| virtual void | animate () |
| | Subclasses should implement.
|
Static Public Member Functions |
| static SurroundEffect * | fromXML (xercesc::DOMElement *node, bool startPaused=true) |
| static void | stopAll () |
| static SurroundEffect * | createDefaultSurroundEffect (Word *word) |
Protected Member Functions |
| void | setupOffsets (const Vector3 &firstCalculatedPos, const Vector3 &curPosition) |
| void | doGrabHack (double frac) |
| | grab a screenshot -- for remote debuggingg
|
Protected Attributes |
| float | _speed |
| Vector3 | _positionOffset |
| Vector3 | _range |
| bool | _firstTime |
| bool | _collapse |
| | Determines if this surround effect will ever collapse.
|
| float | _collapseDuration |
| | How long it takes for this effect to completely collapse.
|
| float | _collapseStartTime |
| | When does/did the collapse start?
|
| Vector3 | _collapseTarget |
| | The point where the collapse is heading for.
|
| int | _framesSinceCreation |
Static Protected Attributes |
| static bool | _stopAll |