#include <PeelEffect.H>
Inherits cavewriting::Effect.
Public Member Functions | |
PeelEffect (Array< Word * > &words, double startTime, double duration=100.0, const Vector3 &goalPosition=Vector3(0, 0, 0), double startYRotation=0.0, double goalYRotation=0.0, bool startPaused=true) | |
virtual | ~PeelEffect () |
virtual void | animate () |
Subclasses should implement. | |
void | setStartYRotation (double val) |
void | setGoalYRotation (double val) |
double | getStartYRotation () |
double | getGoalYRotation () |
Static Public Member Functions | |
static PeelEffect * | fromXML (xercesc::DOMElement *node, bool startPaused=true) |
static void | stopAll () |
Protected Member Functions | |
void | bounce () |
void | firstTime () |
void | moveWord () |
bool | shouldBounce () |
bool | shouldSurround () |
void | startSurround () |
bool | timesUp () |
bool | invokeEndAction () |
bool | collapseStarted () |
Protected Attributes | |
Vector3 | _goalPosition |
double | _goalYRotation |
double | _startYRotation |
Array< Vector3 > | _startPositions |
bool | _firstTime |
bool | _hasBounced |
Static Protected Attributes | |
static bool | _stopAll |
|
|
|
|
|
Subclasses should implement.
Reimplemented from cavewriting::Effect. |
|
|
|
|
|
|
|
Reads an Effect in from xml. Creates and returns an instance of the appropriate subclass. Reimplemented from cavewriting::Effect. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rotation around the y axis in radians. 1.57 = left wall, 0 = front wall, -1.57 = right wall |
|
|
|
|
|
|
|
|