Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / ai_service / ai_mgr_fauna.h
blob70c30c3f067555f331478e8b8e9ef08688452d43
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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_MGR_FAUNA_H
18 #define RYAI_MGR_FAUNA_H
20 #include "ai_mgr.h"
21 #include "ai_place.h"
22 #include "event_manager.h"
23 #include "event_reaction_container.h"
25 class CFauna;
27 //////////////////////////////////////////////////////////////////////////////
28 // CMgrFauna //
29 //////////////////////////////////////////////////////////////////////////////
31 /// This is the manager class for fauna (and fauna groups)
32 class CMgrFauna
33 : public CManager
35 public:
36 CMgrFauna(IManagerParent* parent, uint32 alias, std::string const& name, std::string const& filename);
37 virtual ~CMgrFauna();
39 CStateMachine* getStateMachine() { return &_StateMachine; }
41 virtual std::string getOneLineInfoString() const;
43 //////////////////////////////////////////////////////////////////////////
44 // CStateMachine
46 uint32 getAlias() const { return CManager::getAlias(); }
48 CAIAliasDescriptionNode* getAliasNode() const { return CManager::getAliasNode(); }
50 //////////////////////////////////////////////////////////////////////////
52 //////////////////////////////////////////////////////////////////////////
53 // Methods inherited from IManager.
54 void init();
55 void update();
56 void release() { CManager::release(); }
58 AITYPES::TMgrType type() const { return AITYPES::MgrTypeFauna; }
59 // event managers --------------------------------------------------
60 CAIEvent EventDestinationReachedFirst;
61 CAIEvent EventDestinationReachedAll;
62 CAIEvent EventBotKilled;
63 CAIEvent EventGrpEliminated;
65 CStateMachine _StateMachine;
67 void registerEvents();
69 //////////////////////////////////////////////////////////////////////////
70 // Alias Tree related Methods.
72 IAliasCont* getAliasCont(AITYPES::TAIType type);
73 CAliasTreeOwner* createChild(IAliasCont* cont, CAIAliasDescriptionNode* aliasTree);
75 /// @name CAIEntity public implementation
76 //@{
77 virtual void display(CStringWriter& stringWriter);
78 //@}
80 protected:
81 /// @name CAIEntity protected implementation
82 //@{
83 virtual std::string buildDebugString(uint idx);
84 //@}
87 #endif