Artifact Class Reference

This is an object than the player can take or fight with : baddy, life bonus, projectile, etc ... More...

#include <Artifact.h>

List of all members.

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.


Detailed Description

This is an object than the player can take or fight with : baddy, life bonus, projectile, etc ...


Constructor & Destructor Documentation

Artifact::Artifact  ) 
 

Constructor (without parameters).

Artifact::~Artifact  ) 
 

Destructor.


Member Function Documentation

void Artifact::autoDestroy void   )  [protected]
 

Auto destroy Artifact.

virtual void Artifact::collisionManagement int  consequenceType_  )  [protected, pure virtual]
 

irr::core::vector3df Artifact::getPosition  )  [inline]
 

Get Artifact position.

bool Artifact::isDestroyed  )  [inline]
 

return if the Artifact has been destroyed or not

void Artifact::load Sys lp_sys_,
int  consequenceType_,
const char *  meshFile,
bool  isLighted,
irr::core::vector3df  meshScale,
irr::core::vector3df  initialPos
 

Load Artifact.

void Artifact::play const irr::core::vector3df  posPlayer,
double  radiusPlayer
 

Move artifact, detects collisions, etc ...

void Artifact::setFlyStraightMovement double  speed,
irr::core::vector3df  flyStraightMvt,
bool  loop = false
 

Set fly straight movement type.

void Artifact::setPosition irr::core::vector3df  newPos  )  [inline]
 

Set Artifact position.

void Artifact::setProjectileMovement irr::core::vector3df  vectDirection_  ) 
 

Set projectile movement type.

void Artifact::setRotateMovement void   ) 
 

Set the artifact to rotate on itself.

void Artifact::setSplineMovement double  speed,
irr::core::vector3df  intermediatePosition,
irr::core::vector3df  finalPosition
 

Set spline movement type.

void Artifact::setStaticMovement void   ) 
 

void Artifact::setTimeBeforeAutodestroy int  timeBeforeAutoDestroy  ) 
 

Set time before autodestroy. If the parameter is -1, then the time in infinite.

void Artifact::waitCollision int  time_ms  )  [protected]
 

Wait some time before calling again collisionManagement.


The documentation for this class was generated from the following files:
Generated on Sun Aug 6 10:28:52 2006 for irrsimple by  doxygen 1.4.6-NO