diff options
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h index fdca64e8..6def34a5 100644 --- a/src/player.h +++ b/src/player.h @@ -79,6 +79,15 @@ class Player : public Being * Flash the player's name */ void flash(int time); + + /** + * Triggers a visual/audio effect, such as `level up' + * + * \param effect_id ID of the effect to trigger + */ + virtual void + triggerEffect(int effectId) { internalTriggerEffect(effectId, true, true); } + protected: void updateCoords(); private: |