Fission FSN
Loading...
Searching...
No Matches
gfCCommodityButtonComponent Class Reference

#include <gfCCommodityButtonComponent.h>

Inheritance diagram for gfCCommodityButtonComponent:

Public Member Functions

fsS32 totalGet () const
Public Member Functions inherited from fsCButtonComponent
void brushesReplace (const fsCResourceName &pImageFileName, const fsCResourceName &pDownImageFileName, const fsPoint &pSize)
void actionSet (const fsCUniqueId &pActionId, const fsStr &pParamStr)
fsCEntitybuttonGuiEntityCreate (const fsStr &pEntityName, const fsCResourceName &pImageFileName, const fsCResourceName &pDownImageFileName)
fsCEntitytextButtonGuiEntityCreate (const fsStr &pEntityName, const fsCResourceName &pImageFileName, const fsCResourceName &pDownImageFileName, const fsStr &pText, fsIFont *pFont)
Public Member Functions inherited from fsIGestureHandlingComponent
fsBool hitTest (const fsPoint &pPos) const
Public Member Functions inherited from fsIMessageListenerComponent
 fsIMessageListenerComponent (fsCEntity *pParent)
 fsIMessageListenerComponent (fsCEntity *pParent, fsS32 pPriority)
virtual ~fsIMessageListenerComponent ()
Public Member Functions inherited from fsIComponent
template<typename TInterface>
std::vector< fsCEntity * > appSceneEntitiesWithComponentOfFamilyType () const
template<typename TInterface>
fsCEntityappSceneFirstEntityWithComponentOfFamilyType () const
fsCEntityappSceneEntityNamed (const fsStr &pName) const
void reset ()
void update (fsS32 pDeltaMs)
void render ()
void matrixApply ()
void postLoad ()
void deserialise ()
void serialise ()
void initialiseFromVariableTable (const fsCVariableTable &pVars)
void initialise ()
void finalise ()
fsCEntityparentGet () const
fsCEntitygrandparentGet () const
Public Member Functions inherited from fsIMessageListener
void listenersRegister ()
void listenersDeregister ()
void prioritySet (fsS32 pPriority)
fsBool messageProcess (const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam)
void inputSteal ()

Static Public Attributes

static const fsCUniqueId mItemPurchasedMsg
static const fsCUniqueId mTypeId
Static Public Attributes inherited from fsCButtonComponent
static const fsCUniqueId mTypeId

Protected Member Functions

void listenersRegisterDo () override
void listenersDeregisterDo () override
fsBool messageProcessDo (const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
fsBool highlightSetDo () override
void onTap (const fsPoint &pTapPos) override
void initialiseFromVariableTableDo (const fsCVariableTable &pVars) override
 gfCCommodityButtonComponent (fsCEntity *pParent)
virtual ~gfCCommodityButtonComponent ()
Protected Member Functions inherited from fsCButtonComponent
void defaultSpriteSet ()
fsBool acceptingInputGet () const override
 fsCButtonComponent (fsCEntity *pParent)
virtual ~fsCButtonComponent ()
Protected Member Functions inherited from fsIGestureHandlingComponent
virtual void stolenInputDo ()
void gestureTypesSet (fsBool pHandleTaps, fsBool pHandleDragEvent, fsBool pHandlePinchEvents)
void gestureReset ()
 fsIGestureHandlingComponent (fsCEntity *pParent, fsBool pHandleTaps, fsBool pHandleDragEvent, fsBool pHandlePinchEvents)
virtual ~fsIGestureHandlingComponent ()
Protected Member Functions inherited from fsIComponent
virtual void resetDo ()
virtual void updateDo (fsS32 pDeltaMs)
virtual void renderDo ()
virtual void matrixApplyDo ()
virtual void postLoadDo ()
virtual void deserialiseDo ()
virtual void serialiseDo ()
virtual void initialiseDo ()
virtual void finaliseDo ()
virtual ~fsIComponent ()
 fsIComponent (fsCEntity *pParent)
Protected Member Functions inherited from fsIMessageListener
virtual void inputStealDo ()
 fsIMessageListener (fsS32 pPriority)
virtual ~fsIMessageListener ()

Static Protected Member Functions

static fsIComponent *const create (fsCEntity *pParent)
Static Protected Member Functions inherited from fsCButtonComponent
static fsIComponentcreate (fsCEntity *pParent)

Protected Attributes

fsITextSpriteComponentmCountTxt
Protected Attributes inherited from fsCButtonComponent
fsPoint mSize
std::shared_ptr< fsCBrushmBrush
std::shared_ptr< fsCBrushmOverBrush
fsCUniqueId mActionId
sButtonEventMsgParam mActionParam
Protected Attributes inherited from fsIGestureHandlingComponent
std::vector< sGesturePointmGesturePoints
fsS32 mGestureState
fsS32 mNumPointsDown
fsBool mHighlighted
Protected Attributes inherited from fsIMessageListener
fsS32 mPriority

Friends

class fsCComponentFactory

Additional Inherited Members

Public Types inherited from fsIMessageListener
enum  {
  ePRIORITY_NORMAL = 0 , ePRIORITY_DEBUG_WINDOW , ePRIORITY_SOFTWARE_CURSOR , ePRIORITY_TEXT_ENTRY ,
  ePRIORITY_DEBUG_MODAL , ePRIORITY_DEBUG_MODAL_BUTTON
}
Static Public Member Functions inherited from fsIMessageListener
static fsBool lessThan (const fsIMessageListener *pLHS, const fsIMessageListener *pRHS)
Protected Types inherited from fsIGestureHandlingComponent
enum  {
  eSTATE_NOT_IN_GESTURE = 0 , eSTATE_MOUSE_OVER , eSTATE_EVALUATING_GESTURE_TYPE , eSTATE_IN_TAP_GESTURE ,
  eSTATE_IN_DRAG_GESTURE , eSTATE_IN_PINCH_GESTURE , eSTATE_WAITING_FOR_ALL_POINTS_TO_RELEASE
}

Constructor & Destructor Documentation

◆ gfCCommodityButtonComponent()

gfCCommodityButtonComponent::gfCCommodityButtonComponent ( fsCEntity * pParent)
protected

◆ ~gfCCommodityButtonComponent()

gfCCommodityButtonComponent::~gfCCommodityButtonComponent ( )
protectedvirtual

Member Function Documentation

◆ create()

fsIComponent *const gfCCommodityButtonComponent::create ( fsCEntity * pParent)
staticprotected

◆ highlightSetDo()

fsBool gfCCommodityButtonComponent::highlightSetDo ( )
overrideprotectedvirtual

Reimplemented from fsCButtonComponent.

◆ initialiseFromVariableTableDo()

void gfCCommodityButtonComponent::initialiseFromVariableTableDo ( const fsCVariableTable & pVars)
overrideprotectedvirtual

Reimplemented from fsCButtonComponent.

◆ listenersDeregisterDo()

void gfCCommodityButtonComponent::listenersDeregisterDo ( )
overrideprotectedvirtual

Reimplemented from fsIGestureHandlingComponent.

◆ listenersRegisterDo()

void gfCCommodityButtonComponent::listenersRegisterDo ( )
overrideprotectedvirtual

Reimplemented from fsIGestureHandlingComponent.

◆ messageProcessDo()

fsBool gfCCommodityButtonComponent::messageProcessDo ( const fsCUniqueId & pMessageType,
const fsIMessageDispatcher::sMessageParameters & pParam )
overrideprotectedvirtual

Reimplemented from fsIGestureHandlingComponent.

◆ onTap()

void gfCCommodityButtonComponent::onTap ( const fsPoint & pTapPos)
overrideprotectedvirtual

Reimplemented from fsCButtonComponent.

◆ totalGet()

fsS32 gfCCommodityButtonComponent::totalGet ( ) const

◆ fsCComponentFactory

friend class fsCComponentFactory
friend

Member Data Documentation

◆ mCountTxt

fsITextSpriteComponent* gfCCommodityButtonComponent::mCountTxt
protected

◆ mItemPurchasedMsg

const fsCUniqueId gfCCommodityButtonComponent::mItemPurchasedMsg
static

◆ mTypeId

const fsCUniqueId gfCCommodityButtonComponent::mTypeId
static

The documentation for this class was generated from the following files: