Changeset 279 for trunk/src/game/Creature.h
- Timestamp:
- 11/22/08 00:36:22 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Creature.h
r272 r279 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 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 206 206 uint32 MechanicImmuneMask; 207 207 uint32 flags_extra; 208 char const* ScriptName;208 uint32 ScriptID; 209 209 uint32 GetRandomValidModelId() const; 210 210 uint32 GetFirstValidModelId() const; 211 211 212 // helpers 212 213 SkillType GetRequiredLootSkill() const 213 214 { … … 219 220 return SKILL_SKINNING; // normal case 220 221 } 221 222 222 223 bool isTameable() const 223 224 { … … 426 427 bool canSwim() const { return GetCreatureInfo()->InhabitType & INHABIT_WATER; } 427 428 bool canFly() const { return GetCreatureInfo()->InhabitType & INHABIT_AIR; } 429 bool isAggressive() const { return m_isAggressive; } 430 void SetAggressive(bool agg) { m_isAggressive = agg; } 428 431 ///// TODO RENAME THIS!!!!! 429 432 bool isCanTrainingOf(Player* player, bool msg) const; … … 499 502 CreatureInfo const *GetCreatureInfo() const { return m_creatureInfo; } 500 503 CreatureDataAddon const* GetCreatureAddon() const; 501 char const* GetScriptName() const; 504 505 std::string GetScriptName(); 506 uint32 GetScriptId(); 502 507 503 508 void prepareGossipMenu( Player *pPlayer, uint32 gossipid = 0 ); … … 525 530 // overwrite WorldObject function for proper name localization 526 531 const char* GetNameForLocaleIdx(int32 locale_idx) const; 527 532 528 533 void setDeathState(DeathState s); // overwrite virtual Unit::setDeathState 529 534 … … 553 558 bool canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) const; 554 559 bool IsWithinSightDist(Unit const* u) const; 560 bool canStartAttack(Unit const* u) const; 555 561 float GetAttackDistance(Unit const* pl) const; 556 562 563 Unit* SelectNearestTarget(float dist = 0) const; 557 564 void CallAssistence(); 558 565 void SetNoCallAssistence(bool val) { m_AlreadyCallAssistence = val; } … … 634 641 bool m_isPet; // set only in Pet::Pet 635 642 bool m_isTotem; // set only in Totem::Totem 643 bool m_isAggressive; 636 644 void RegenerateMana(); 637 645 void RegenerateHealth();