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/>.
20 #ifndef RY_SABRINA_PHRASE_MODEL_FIGHT_H
21 #define RY_SABRINA_PHRASE_MODEL_FIGHT_H
23 #include "sabrina_phrase_model.h"
26 * Base virtual class for all Sabrina phrases
27 * \author David Fleury
28 * \author Nevrax France
31 class CSabrinaPhraseModelFight
: public ISabrinaPhraseModel
34 //--------------------------------------------------------------------
35 // specialisation of virtual methods from ISabrinaPhraseModel
37 virtual bool addBrick( const CStaticBrick
* brick
)
42 virtual bool isValid( )
47 virtual SABRINA::TEventCode
evaluate(const CSabrinaPhraseInstance
* phraseInstance
, CEvalReturnInfos
* msg
= NULL
)
49 return SABRINA::SuccessNormal
; // TODO
52 virtual bool requiresTarget()
57 virtual SABRINA::TEventCode
validate(const CSabrinaPhraseInstance
* phraseInstance
)
59 return SABRINA::SuccessNormal
; // TODO
62 virtual uint32
calculatePreExecutionDelay(const CSabrinaPhraseInstance
* phraseInstance
)
67 virtual SABRINA::TEventCode
executeAndApplyResults(const CSabrinaPhraseInstance
* phraseInstance
)
69 return SABRINA::SuccessNormal
; // TODO
72 virtual uint32
calculatePostExecutionDelay(const CSabrinaPhraseInstance
* phraseInstance
)