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/>.
19 #ifndef RY_SPHRASE_SHEET_H
20 #define RY_SPHRASE_SHEET_H
22 #include "nel/misc/types_nl.h"
23 #include "nel/misc/sheet_id.h"
24 #include "entity_sheet.h"
26 #define SPHRASE_MAX_BRICK 100
28 // ***************************************************************************
30 * New Sabrina Brick Sheet def.
31 * \author Matthieu Besson
32 * \author Nevrax France
33 * \date 2003 September
35 class CSPhraseSheet
: public CEntitySheet
38 // All these values are sheet id
39 std::vector
<NLMISC::CSheetId
> Bricks
;
40 // False if it is an upgrade phrase for instance. true means it can be memorized
42 // True if it can be shown in the ActionProgression window
43 bool ShowInActionProgression
;
44 // True if it can be shown in the ActionProgression window (only if all bricks learn)
45 bool ShowInAPOnlyIfLearnt
;
51 Type
= CEntitySheet::SPHRASE
;
53 ShowInActionProgression
= true;
54 ShowInAPOnlyIfLearnt
= false;
57 virtual void build (const NLGEORGES::UFormElm
&root
);
59 virtual void serial (NLMISC::IStream
&s
)
61 s
.serialCont (Bricks
);
63 s
.serial(ShowInActionProgression
);
64 s
.serial(ShowInAPOnlyIfLearnt
);
67 // Valid if Bricks not empty and all Bricks sheetId != NULL.
72 #endif // RY_SPHRASE_SHEET_H
74 /* End of sphrase_sheet.h */