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