1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef RYAI_PROFILE_PET_H
18 #define RYAI_PROFILE_PET_H
20 #include "profile.h" // for CAIBaseProfile
21 #include "ai_share/ai_types.h" // for TProfiles
22 #include "ai_pos.h" // for CAIPos
23 #include "ai_share/world_map.h" // for TAStarFlag
24 #include "path_behaviors.h" // for CPathCont
29 #include "ai_bot_pet.h"
30 #include "server_share/pet_interface_msg.h"
33 //////////////////////////////////////////////////////////////////////////////
34 // CAIPetProfileStand //
35 //////////////////////////////////////////////////////////////////////////////
37 class CAIPetProfileStand
38 : public CAIBaseProfile
41 CAIPetProfileStand(CSpawnBotPet
* bot
);
43 virtual void beginProfile() { }
44 virtual void updateProfile(uint ticksSinceLastUpdate
) { }
45 virtual void endProfile() { }
47 virtual std::string
getOneLineInfoString() const { return std::string("stand pet profile"); }
49 AITYPES::TProfiles
getAIProfileType() const { return AITYPES::PET_STAND
; }
52 NLMISC::CDbgPtr
<CSpawnBotPet
> _Bot
;
55 //////////////////////////////////////////////////////////////////////////////
56 // CAIPetProfileFollowPlayer //
57 //////////////////////////////////////////////////////////////////////////////
59 class CAIPetProfileFollowPlayer
60 : public CAIBaseProfile
63 CAIPetProfileFollowPlayer(CSpawnBotPet
* bot
, TDataSetRow
const& playerRow
);
65 virtual void beginProfile() { }
66 virtual void updateProfile(uint ticksSinceLastUpdate
);
67 virtual void endProfile() { }
69 virtual std::string
getOneLineInfoString() const { return std::string("follow_player pet profile"); }
71 AITYPES::TProfiles
getAIProfileType() const { return AITYPES::PET_FOLLOW
; }
75 NLMISC::CDbgPtr
<CSpawnBotPet
> _Bot
;
76 TDataSetRow _PlayerRow
;
79 //////////////////////////////////////////////////////////////////////////////
80 // CAIPetProfileGotoPoint //
81 //////////////////////////////////////////////////////////////////////////////
83 class CAIPetProfileGotoPoint
84 : public CAIBaseProfile
87 CAIPetProfileGotoPoint(CSpawnBotPet
* bot
, CAIPos
const& position
, RYAI_MAP_CRUNCH::TAStarFlag denyFlags
, bool despawn
= false);
89 bool isValid() const { return _Valid
; }
91 virtual void beginProfile() { }
92 virtual void updateProfile(uint ticksSinceLastUpdate
);
93 virtual void endProfile() { }
95 virtual std::string
getOneLineInfoString() const { return std::string("goto_point pet profile"); }
97 AITYPES::TProfiles
getAIProfileType() const;
100 NLMISC::CDbgPtr
<CSpawnBotPet
> _Bot
;