|
Public Member Functions |
| | Artifact () |
| | Constructor (without parameters).
|
| void | load (Sys *lp_sys_, int consequenceType_, const char *meshFile, bool isLighted, irr::core::vector3df meshScale, irr::core::vector3df initialPos) |
| | Load Artifact.
|
| void | setFlyStraightMovement (double speed, irr::core::vector3df flyStraightMvt, bool loop=false) |
| | Set fly straight movement type.
|
| void | setSplineMovement (double speed, irr::core::vector3df intermediatePosition, irr::core::vector3df finalPosition) |
| | Set spline movement type.
|
| void | setProjectileMovement (irr::core::vector3df vectDirection_) |
| | Set projectile movement type.
|
| void | setTimeBeforeAutodestroy (int timeBeforeAutoDestroy) |
| void | setRotateMovement (void) |
| | Set the artifact to rotate on itself.
|
| void | setStaticMovement (void) |
| void | play (const irr::core::vector3df posPlayer, double radiusPlayer) |
| | Move artifact, detects collisions, etc ...
|
| irr::core::vector3df | getPosition () |
| | Get Artifact position.
|
| void | setPosition (irr::core::vector3df newPos) |
| | Set Artifact position.
|
| | ~Artifact () |
| | Destructor.
|
| bool | isDestroyed () |
| | return if the Artifact has been destroyed or not
|
Protected Member Functions |
| virtual void | collisionManagement (int consequenceType_)=0 |
| void | autoDestroy (void) |
| | Auto destroy Artifact.
|
| void | waitCollision (int time_ms) |
| | Wait some time before calling again collisionManagement.
|