view LightClone/Source/CodeSlot.h @ 40:00d17d8f407d

Hookup game over dialog; Remove Code class
author koryspansel
date Thu, 22 Sep 2011 10:21:14 -0700
parents 58a16d529d95
children
line wrap: on
line source

/*
 * CodeSlot
 */

#ifndef __CODESLOT_H__
#define __CODESLOT_H__

#include "Core.h"
#include "GuiImage.h"

/*
 * CodeSlot
 */
class CodeSlot : public GuiImage
{
	/*
	 * nSlot
	 */
	uint32 nSlot;

	/*
	 * nAction
	 */
	uint32 nAction;

	/*
	 * bPermanent
	 */
	bool bPermanent;

public:

	/*
	 * CodeSlot
	 */
	CodeSlot();

	/*
	 * Initialize
	 */
	virtual ErrorCode Initialize(ResourceManager* pResourceManager);

	/*
	 * Terminate
	 */
	virtual void Terminate();

	/*
	 * SetSlot
	 */
	void SetSlot(uint32 nSlot);

	/*
	 * GetSlot
	 */
	uint32 GetSlot() const;

	/*
	 * SetAction
	 */
	void SetAction(uint32 nAction);

	/*
	 * GetAction
	 */
	uint32 GetAction() const;

	/*
	 * SetPermanent
	 */
	void SetPermanent(bool bPermanent);

protected:

	/*
	 * OnMouseDown
	 */
	virtual void OnMouseDown(uint32 nButton, float fX, float fY);

	/*
	 * OnMouseUp
	 */
	virtual void OnMouseUp(uint32 nButton, float fX, float fY);

	/*
	 * OnMouseMove
	 */
	virtual void OnMouseMove(float fX, float fY);

	/*
	 * OnDrop
	 */
	virtual void OnDrop(GuiElement* pSource, float fX, float fY);
};

#endif //__CODESLOT_H__