DinkSmallwoodHD/source/Component/CursorComponent.h
seth d4f66a5d2e Initial commit of Dink Smallwood HD source. See the "Programmer readme.txt" for information on how to set it up.
git-svn-id: svn://rtsoft.com/rtsvn/projects/RTDink@1469 353e56fe-9613-0410-8469-b96ad8e6f29c
2017-09-12 04:57:47 +00:00

51 lines
No EOL
1.2 KiB
C++

// ***************************************************************
// CursorComponent - Creation date: ?/?/2009
// -------------------------------------------------------------
// Robinson Technologies Copyright (C) 2009 - All Rights Reserved
//
// ***************************************************************
// Programmer(s): Seth A. Robinson (seth@rtsoft.com)
// ***************************************************************
#ifndef CursorComponent_h__
#define CursorComponent_h__
#include "Entity/Component.h"
#include "Entity/Entity.h"
#include "../dink/dink.h"
class CursorComponent: public EntityComponent
{
public:
CursorComponent();
virtual ~CursorComponent();
virtual void OnAdd(Entity *pEnt);
virtual void OnRemove();
private:
void OnRender(VariantList *pVList);
void OnUpdate(VariantList *pVList);
void OnInput( VariantList *pVList );
void OnUpdatePos(CL_Vec2f vPos);
void OnKillingControls(VariantList *pVList);
CL_Vec2f *m_pPos2d;
/*
CL_Vec2f *m_pSize2d;
float *m_pScale;
uint32 *m_pColor;
uint32 *m_pColorMod;
float *m_pAlpha;
uint32 *m_pAlignment;
float *m_pRotation; //in degrees
*/
Entity *m_pArrowEnt;
bool m_bDisable;
};
#endif // CursorComponent_h__