aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-10 09:59:16 -0700
committermaximius <none@none>2009-09-10 09:59:16 -0700
commit5633ea57d11e23d8609994bd2ee9cdf7e36ed5e7 (patch)
tree7518b778737a45d768b1f67edaef5bffcbb105c2 /src/game/Unit.h
parent580b3f8805bf307fe057ea852aa469fe9f5e4848 (diff)
*MrSmite's PetAI patch, plus Hawthorne's Instant Flight Paths (now with actual code! >_<)
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.h')
-rw-r--r--src/game/Unit.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h
index 709eb50c850..bd1abcc20e5 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -1010,6 +1010,19 @@ struct CharmInfo
void ToggleCreatureAutocast(uint32 spellid, bool apply);
CharmSpellEntry* GetCharmSpell(uint8 index) { return &(m_charmspells[index]); }
+
+ // MrSmite 09-05-2009 PetAI_v1.0
+ void SetIsCommandAttack(bool val);
+ bool IsCommandAttack();
+ void SetIsAtStay(bool val);
+ bool IsAtStay();
+ void SetIsFollowing(bool val);
+ bool IsFollowing();
+ void SetIsReturning(bool val);
+ bool IsReturning();
+ void SaveStayPosition();
+ void GetStayPosition(float &x, float &y, float &z);
+
private:
Unit* m_unit;
@@ -1022,6 +1035,15 @@ struct CharmInfo
//for restoration after charmed
ReactStates m_oldReactState;
+
+ // MrSmite 09-05-2009 PetAI_v1.0
+ bool m_isCommandAttack;
+ bool m_isAtStay;
+ bool m_isFollowing;
+ bool m_isReturning;
+ float m_stayX;
+ float m_stayY;
+ float m_stayZ;
};
// for clearing special attacks