Show
Ignore:
Timestamp:
11/22/08 00:36:22 (17 years ago)
Author:
yumileroy
Message:

Merged commit 269 (5f0e38da128a).

Original author: gvcoman
Date: 2008-11-21 14:34:05-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Player.h

    r272 r279  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
    1919 */ 
    2020 
     
    3434#include "WorldSession.h" 
    3535#include "Pet.h" 
     36#include "MapReference.h" 
    3637#include "Util.h"                                           // for Tokens typedef 
    3738 
     
    780781 
    781782/// Type of environmental damages 
    782 enum EnvironmentalDamageType 
     783enum EnviromentalDamage 
    783784{ 
    784785    DAMAGE_EXHAUSTED = 0, 
     
    11251126        uint32 GetArmorProficiency() const { return m_ArmorProficiency; } 
    11261127        bool IsInFeralForm() const { return m_form == FORM_CAT || m_form == FORM_BEAR || m_form == FORM_DIREBEAR; } 
    1127         bool IsUseEquippedWeapon( bool mainhand ) const 
     1128        bool IsUseEquipedWeapon( bool mainhand ) const 
    11281129        { 
    11291130            // disarm applied only to mainhand weapon 
     
    13071308                SetMoney (GetMoney() > uint32(-d) ? GetMoney() + d : 0); 
    13081309            else 
    1309                 SetMoney (GetMoney() < MAX_MONEY_AMOUNT - d ? GetMoney() + d : MAX_MONEY_AMOUNT); 
     1310                SetMoney (GetMoney() < uint32(MAX_MONEY_AMOUNT - d) ? GetMoney() + d : MAX_MONEY_AMOUNT); 
    13101311 
    13111312            // "At Gold Limit" 
     
    14291430        PlayerSpellMap const& GetSpellMap() const { return m_spells; } 
    14301431        PlayerSpellMap      & GetSpellMap()       { return m_spells; } 
    1431         ActionButtonList const& GetActionButtonList() const { return m_actionButtons; } 
    14321432 
    14331433        void AddSpellMod(SpellModifier* mod, bool apply); 
     
    15191519        void SendUpdateToOutOfRangeGroupMembers(); 
    15201520 
    1521         void SetInGuild(uint32 GuildId) { SetUInt32Value(PLAYER_GUILDID, GuildId); Player::SetUInt32ValueInDB(PLAYER_GUILDID, GuildId, this->GetGUID()); } 
    1522         void SetRank(uint32 rankId){ SetUInt32Value(PLAYER_GUILDRANK, rankId); Player::SetUInt32ValueInDB(PLAYER_GUILDRANK, rankId, this->GetGUID()); } 
     1521        void SetInGuild(uint32 GuildId) { SetUInt32Value(PLAYER_GUILDID, GuildId); Player::SetUInt32ValueInDB(PLAYER_GUILDID, GuildId, GetGUID()); } 
     1522        void SetRank(uint32 rankId){ SetUInt32Value(PLAYER_GUILDRANK, rankId); Player::SetUInt32ValueInDB(PLAYER_GUILDRANK, rankId, GetGUID()); } 
    15231523        void SetGuildIdInvited(uint32 GuildId) { m_GuildIdInvited = GuildId; } 
    15241524        uint32 GetGuildId() { return GetUInt32Value(PLAYER_GUILDID);  } 
     
    15331533        { 
    15341534            SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (slot * 6), ArenaTeamId); 
    1535             SetUInt32ValueInDB(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (slot * 6), ArenaTeamId, this->GetGUID()); 
     1535            SetUInt32ValueInDB(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (slot * 6), ArenaTeamId, GetGUID()); 
    15361536        } 
    15371537        uint32 GetArenaTeamId(uint8 slot) { return GetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (slot * 6)); } 
     
    16091609        void SendLogXPGain(uint32 GivenXP,Unit* victim,uint32 RestXP); 
    16101610 
    1611                 //Low Level Packets 
     1611        //Low Level Packets 
    16121612        void PlaySound(uint32 Sound, bool OnlySelf); 
    16131613        //notifiers 
     
    16411641        void KillPlayer(); 
    16421642        uint32 GetResurrectionSpellId(); 
    1643         void ResurrectPlayer(float restore_percent, bool updateToWorld = true, bool applySickness = false); 
     1643        void ResurrectPlayer(float restore_percent, bool applySickness = false); 
    16441644        void BuildPlayerRepop(); 
    16451645        void RepopAtGraveyard(); 
     
    17631763        void SetRegularAttackTime(); 
    17641764        void SetBaseModValue(BaseModGroup modGroup, BaseModType modType, float value) { m_auraBaseMod[modGroup][modType] = value; } 
    1765         void HandleBaseModValue(BaseModGroup modGroup, BaseModType modType, float amount, bool apply, bool affectStats = true); 
     1765        void HandleBaseModValue(BaseModGroup modGroup, BaseModType modType, float amount, bool apply); 
    17661766        float GetBaseModValue(BaseModGroup modGroup, BaseModType modType) const; 
    17671767        float GetTotalBaseModValue(BaseModGroup modGroup) const; 
     
    17701770        void _RemoveAllStatBonuses(); 
    17711771 
    1772         void _ApplyWeaponDependentAuraMods(Item *item,WeaponAttackType attackType,bool apply); 
     1772        void _ApplyWeaponDependentAuraMods(Item *item, WeaponAttackType attackType, bool apply); 
    17731773        void _ApplyWeaponDependentAuraCritMod(Item *item, WeaponAttackType attackType, Aura* aura, bool apply); 
    17741774        void _ApplyWeaponDependentAuraDamageMod(Item *item, WeaponAttackType attackType, Aura* aura, bool apply); 
     
    19351935 
    19361936        /*********************************************************/ 
    1937         /***              ENVIRONMENTAL SYSTEM                  ***/ 
    1938         /*********************************************************/ 
    1939  
    1940         void EnvironmentalDamage(uint64 guid, EnvironmentalDamageType type, uint32 damage); 
     1937        /***              ENVIROMENTAL SYSTEM                  ***/ 
     1938        /*********************************************************/ 
     1939 
     1940        void EnvironmentalDamage(uint64 guid, EnviromentalDamage type, uint32 damage); 
    19411941 
    19421942        /*********************************************************/ 
     
    20632063 
    20642064        GridReference<Player> &GetGridRef() { return m_gridRef; } 
     2065        MapReference &GetMapRef() { return m_mapRef; } 
     2066 
    20652067        bool isAllowedToLoot(Creature* creature); 
    20662068 
     
    23082310 
    23092311        GridReference<Player> m_gridRef; 
     2312        MapReference m_mapRef; 
    23102313}; 
    23112314