/*********************************************************
artifact.h
Class Artifact : bonus, baddies, magickeys, etc ...
made by phrounz
*********************************************************/

#ifndef ARTIFACT_H
#define ARTIFACT_H

#define ARTIFACT_BONUSHONEY 1
#define ARTIFACT_BADDY1 2

class Artifact
{
    public:
        Artifact(
            const char *meshFile,
            core::vector3df initialPosition,
            bool isFlyStraightMovement,
            core::vector3df flyStraightAngle,
            core::vector3df intermediatePosition,
            core::vector3df finalPosition,
            double speed,
            bool destroyIfCollision_,
            int consequenceType_,
            int isRotating,
            int isSemiTransp,
            int projectilesType_);
        bool Play(const core::vector3df posObject,double radiusObject);
        int consequenceType;
        ~Artifact();
        //int getNode(void) { return (int)node;}
    private:
        scene::IAnimatedMesh* mesh;
        scene::ISceneNode* node;
        double radius;
        bool destroyIfCollision;        
        bool isDestroyed;
        void Destroy(void);
        bool alreadyColliding;
        int timeDestroy;
        int projectilesType;
        int timeProjectile;
        bool isFlyStraightMovement;
};

#endif /*ARTIFACT_H*/
