Changeset 161 for trunk/src/game/Unit.h
- Timestamp:
- 11/19/08 13:41:55 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Unit.h
r149 r161 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * … … 217 217 HITINFO_RESIST = 0x00000040, // resisted atleast some damage 218 218 HITINFO_CRITICALHIT = 0x00000080, 219 HITINFO_UNK2 = 0x00000100, // wotlk? 220 HITINFO_UNK3 = 0x00002000, // wotlk? 219 221 HITINFO_GLANCING = 0x00004000, 220 222 HITINFO_CRUSHING = 0x00008000, … … 513 515 UNIT_NPC_FLAG_STABLEMASTER = 0x00400000, // 100% 514 516 UNIT_NPC_FLAG_GUILD_BANKER = 0x00800000, // cause client to send 997 opcode 515 UNIT_NPC_FLAG_ UNK3 = 0x01000000, // cause client to send 1015 opcode517 UNIT_NPC_FLAG_SPELLCLICK = 0x01000000, // cause client to send 1015 opcode (spell click) 516 518 UNIT_NPC_FLAG_GUARD = 0x10000000, // custom flag for guards 517 519 UNIT_NPC_FLAG_OUTDOORPVP = 0x20000000, // custom flag for outdoor pvp creatures … … 648 650 bool HasCommandState(CommandStates state) { return (m_CommandState == state); } 649 651 void SetReactState(ReactStates st) { m_reactState = st; } 650 651 652 ReactStates GetReactState() { return m_reactState; } 653 bool HasReactState(ReactStates state) { return (m_reactState == state); } 652 654 653 655 void InitPossessCreateSpells(); … … 992 994 CharmInfo* GetCharmInfo() { return m_charmInfo; } 993 995 CharmInfo* InitCharmInfo(Unit* charm); 996 997 Pet* CreateTamedPetFrom(Creature* creatureTarget,uint32 spell_id = 0); 994 998 995 999 bool AddAura(Aura *aur); … … 1330 1334 bool HandleHasteAuraProc(Unit *pVictim, SpellEntry const *spellProto, uint32 effIndex, uint32 damage, Aura* triggredByAura, SpellEntry const * procSpell, uint32 procFlag,uint32 cooldown); 1331 1335 bool HandleOverrideClassScriptAuraProc(Unit *pVictim, int32 scriptId, uint32 damage, Aura* triggredByAura, SpellEntry const *procSpell,uint32 cooldown); 1336 1332 1337 uint32 m_state; // Even derived shouldn't modify 1333 1338 uint32 m_CombatTimer;