/********************************************************************
*
* File: gfCTrapComponent.h
*
* Purpose: Component which covers another up and shows up on
* mouse devices as a change in cursor
*
*********************************************************************/
#ifndef gfCTrapComponenthdr
#define gfCTrapComponenthdr
#include <fsCore/src/fsCUniqueId.h>
#include "gfCTappableCollectableComponent.h"
class gfCTrapComponent : public gfCTappableCollectableComponent
{
friend class fsCComponentFactory;
friend class gfCTutorialSequencerComponent;
public:
static const fsCUniqueId mTypeId;
static const fsStr mEntityPrefix;
protected:
fsBool messageProcessDo(const fsCUniqueId& pMessageType,
const fsIMessageDispatcher::sMessageParameters& pParam) override;
static fsIComponent* create(fsCEntity* pParent);
gfCTrapComponent(fsCEntity* pParent);
virtual ~gfCTrapComponent();<--- Destructor in derived class
private:
void cursorNotify(const fsIMessageDispatcher::sMessageParameters& pParam);
fsBool mMouseOver;
};
#endif