|
stmm-games-doc
0.32.0
|

Classes | |
| struct | Init |
| struct | LocalInit |
| struct | SobstItem |
Public Member Functions | |
| ShowTextEvent (Init &&oInit) noexcept | |
| Constructor. More... | |
| void | trigger (int32_t nMsg, int32_t nValue, Event *p0TriggeringEvent) noexcept override |
| The trigger function. More... | |
Public Member Functions inherited from stmg::Event | |
| virtual | ~Event () noexcept=default |
| virtual void | addMsgFilter (int32_t nInFromMsg, int32_t nInToMsg, int32_t nInFromValue, int32_t nInToValue, bool bOutMsgDefined, int32_t nOutMsg, MSG_FILTER_VALUE_OP eOutValueOperator, int32_t nOutValueOperand, int32_t nOutValueAdd) noexcept |
| Add a message filter. More... | |
| virtual void | addListener (int32_t nGroupId, Event *p0ListenerEvent, int32_t nMsg) noexcept |
| Adds a listener to the event. More... | |
| bool | isActive () const noexcept |
| Tells whether the event is active. More... | |
| int32_t | getTriggerTime () const noexcept |
| The triggering time. More... | |
| int32_t | getPriority () const noexcept |
| The priority. More... | |
| int32_t | getDebugTag () const noexcept |
| The debug tag. More... | |
Static Public Attributes | |
| static constexpr int32_t | s_nShowTextEventDefaultZ = 100000 |
Protected Member Functions | |
| void | reInit (Init &&oInit) noexcept |
| See constructor. More... | |
Protected Member Functions inherited from stmg::Event | |
| Event (Init &&oInit) noexcept | |
| Constructor. More... | |
| void | reInit (Init &&oInit) noexcept |
| Reinitialization. More... | |
| virtual void | informListeners (int32_t nGroupId, int32_t nValue) noexcept |
| Calls the trigger function of a group of listeners. More... | |
| const Level & | level () const noexcept |
| The level this event belongs to. More... | |
| Level & | level () noexcept |
| The level this event belongs to. More... | |
| anonymous enum |
If SobstItem::m_eSobstType is SOBST_TYPE_INPUT, SobstItem::m_nParam1 contains a value from this enumeration.
If SobstItem::m_eSobstType is SOBST_TYPE_INTERVAL, SobstItem::m_nParam1 contains a value from this enumeration.
| Enumerator | |
|---|---|
| SOBST_INTERVAL_TYPE_GAME | The current game interval in milliseconds. %dg%% |
| SOBST_INTERVAL_TYPE_LEVEL | The current level interval in milliseconds. %dl%% |
|
explicitnoexcept |
Constructor.
| oInit | The parameters. |
|
protectednoexcept |
See constructor.
|
overridevirtualnoexcept |
The trigger function.
This function provides the functionality of the event and can be called in two ways.
It can be called by an event through informListeners() this event was listening to. Note: events can listen to themselves.
It can also be called by the timer if the event was active.
When this function is called the event has already been deactivated by the level (if it was active in the first place).
When this function is called the filters of this event have already been applied.
| nMsg | The message received. |
| nValue | The value received. |
| p0TriggeringEvent | The triggering event or null if triggered by timer. |
Implements stmg::Event.
|
static |
1.8.13