From e5671f8bdc30ac567a535f698c8dcaedd4441340 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 7 Dec 2008 20:58:03 +0100 Subject: Some code reformatting --- src/being.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 9390dccd..abbd4c30 100644 --- a/src/being.h +++ b/src/being.h @@ -385,8 +385,10 @@ class Being : public Sprite * * \param effectId ID of the effect to trigger */ - virtual void - triggerEffect(int effectId) { internalTriggerEffect(effectId, false, true); } + virtual void triggerEffect(int effectId) + { + internalTriggerEffect(effectId, false, true); + } const std::auto_ptr mEquipment; @@ -420,22 +422,19 @@ class Being : public Sprite * \param sfx Whether to trigger sound effects * \param gfx Whether to trigger graphical effects */ - void - internalTriggerEffect(int effectId, bool sfx, bool gfx); + void internalTriggerEffect(int effectId, bool sfx, bool gfx); /** * Notify self that the stun mode has been updated. Invoked by * setStunMode if something changed. */ - virtual void - updateStunMode(int oldMode, int newMode); + virtual void updateStunMode(int oldMode, int newMode); /** * Notify self that a status effect has flipped. * The new flag is passed. */ - virtual void - updateStatusEffect(int index, bool newStatus); + virtual void updateStatusEffect(int index, bool newStatus); /** * Handle an update to a status or stun effect @@ -443,8 +442,7 @@ class Being : public Sprite * \param The StatusEffect to effect * \param effectId -1 for stun, otherwise the effect index */ - virtual void - handleStatusEffect(StatusEffect *effect, int effectId); + virtual void handleStatusEffect(StatusEffect *effect, int effectId); Uint32 mId; /**< Unique sprite id */ Uint16 mWalkSpeed; /**< Walking speed */ @@ -462,8 +460,8 @@ class Being : public Sprite Uint8 mGender; Uint32 mSpeechTime; Sint32 mPx, mPy; /**< Pixel coordinates */ - Uint16 mStunMode; /**< Stun mode; zero if not stunned */ - std::set mStatusEffects; /**< set of active status effects */ + Uint16 mStunMode; /**< Stun mode; zero if not stunned */ + std::set mStatusEffects; /**< set of active status effects */ std::vector mSprites; std::vector mSpriteIDs; -- cgit v1.2.3-60-g2f50