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_MGR_FAUNA_H
18 #define RYAI_MGR_FAUNA_H
22 #include "event_manager.h"
23 #include "event_reaction_container.h"
27 //////////////////////////////////////////////////////////////////////////////
29 //////////////////////////////////////////////////////////////////////////////
31 /// This is the manager class for fauna (and fauna groups)
36 CMgrFauna(IManagerParent
* parent
, uint32 alias
, std::string
const& name
, std::string
const& filename
);
39 CStateMachine
* getStateMachine() { return &_StateMachine
; }
41 virtual std::string
getOneLineInfoString() const;
43 //////////////////////////////////////////////////////////////////////////
46 uint32
getAlias() const { return CManager::getAlias(); }
48 CAIAliasDescriptionNode
* getAliasNode() const { return CManager::getAliasNode(); }
50 //////////////////////////////////////////////////////////////////////////
52 //////////////////////////////////////////////////////////////////////////
53 // Methods inherited from IManager.
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
77 virtual void display(CStringWriter
& stringWriter
);
81 /// @name CAIEntity protected implementation
83 virtual std::string
buildDebugString(uint idx
);