Changeset 272 for trunk/src/game/Creature.h
- Timestamp:
- 11/22/08 00:35:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Creature.h
r267 r272 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. 13 * 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 uint32 ScriptID;208 char const* ScriptName; 209 209 uint32 GetRandomValidModelId() const; 210 210 uint32 GetFirstValidModelId() const; 211 212 // helpers 211 213 212 SkillType GetRequiredLootSkill() const 214 213 { … … 220 219 return SKILL_SKINNING; // normal case 221 220 } 222 221 223 222 bool isTameable() const 224 223 { … … 427 426 bool canSwim() const { return GetCreatureInfo()->InhabitType & INHABIT_WATER; } 428 427 bool canFly() const { return GetCreatureInfo()->InhabitType & INHABIT_AIR; } 429 bool isAggressive() const { return m_isAggressive; }430 void SetAggressive(bool agg) { m_isAggressive = agg; }431 428 ///// TODO RENAME THIS!!!!! 432 429 bool isCanTrainingOf(Player* player, bool msg) const; … … 461 458 bool AIM_Initialize(); 462 459 void InitPossessedAI(); 463 void D eletePossessedAI();460 void DisablePossessedAI(); 464 461 465 462 void AI_SendMoveToPacket(float x, float y, float z, uint32 time, uint32 MovementFlags, uint8 type); … … 502 499 CreatureInfo const *GetCreatureInfo() const { return m_creatureInfo; } 503 500 CreatureDataAddon const* GetCreatureAddon() const; 504 505 std::string GetScriptName(); 506 uint32 GetScriptId(); 501 char const* GetScriptName() const; 507 502 508 503 void prepareGossipMenu( Player *pPlayer, uint32 gossipid = 0 ); … … 530 525 // overwrite WorldObject function for proper name localization 531 526 const char* GetNameForLocaleIdx(int32 locale_idx) const; 532 527 533 528 void setDeathState(DeathState s); // overwrite virtual Unit::setDeathState 534 529 … … 558 553 bool canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList) const; 559 554 bool IsWithinSightDist(Unit const* u) const; 560 bool canStartAttack(Unit const* u) const;561 555 float GetAttackDistance(Unit const* pl) const; 562 556 563 Unit* SelectNearestTarget(float dist = 0) const;564 557 void CallAssistence(); 565 558 void SetNoCallAssistence(bool val) { m_AlreadyCallAssistence = val; } … … 641 634 bool m_isPet; // set only in Pet::Pet 642 635 bool m_isTotem; // set only in Totem::Totem 643 bool m_isAggressive;644 636 void RegenerateMana(); 645 637 void RegenerateHealth();