Fission
FSN
Loading...
Searching...
No Matches
gameModules
gfCatalogue
src
gfIButtonDelayComponent.h
Go to the documentation of this file.
1
/********************************************************************
2
*
3
* File: gfIButtonDelayComponent.h
4
*
5
* Purpose: Thin contract for an optional "delay timer" child a
6
* commodity button can have (gfCCommodityButtonComponent)
7
* - lets a purchase be gated on a cooldown finishing
8
* without gfCatalogue needing to know about any concrete
9
* delay-timer implementation. gfHogCore's
10
* fsCButtonDelayComponent is the only implementation
11
* today; it stays in gfHogCore since its actual timing
12
* rules are HOG-specific (difficulty-based durations,
13
* minigame/collectors-level exceptions), only the
14
* timerActive() query itself is generic.
15
*
16
*********************************************************************/
17
18
#ifndef gfIButtonDelayComponenthdr
19
#define gfIButtonDelayComponenthdr
20
21
#include <
fsCore/fsBaseTypes.h
>
22
23
class
gfIButtonDelayComponent
24
{
25
public
:
26
27
virtual
fsBool
timerActive
()
const
= 0;
28
29
virtual
~gfIButtonDelayComponent
() {}
30
};
31
32
#endif
gfIButtonDelayComponent
Definition
gfIButtonDelayComponent.h:24
gfIButtonDelayComponent::~gfIButtonDelayComponent
virtual ~gfIButtonDelayComponent()
Definition
gfIButtonDelayComponent.h:29
gfIButtonDelayComponent::timerActive
virtual fsBool timerActive() const =0
fsBaseTypes.h
fsBool
bool fsBool
Definition
fsBaseTypes.h:26
Generated on
for Fission by
1.16.1