Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / client / src / client_sheets / success_table_sheet.h
blob842d632818b1476182318e97d8fec1ee690ccf28
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/>.
19 #ifndef NL_SUCCESS_TABLE_SHEET_H
20 #define NL_SUCCESS_TABLE_SHEET_H
22 #include "entity_sheet.h"
25 // ***************************************************************************
26 /**
27 * <Class description>
28 * \author Lionel Berenguier
29 * \author Nevrax France
30 * \date 2003
32 class CSuccessTableSheet : public CEntitySheet
34 public:
37 /// The Difficulty Table
38 struct CSuccessEntry
40 sint32 RelativeLevel;
41 sint32 SuccessProbability;
42 sint32 PartialSuccessProbability;
43 void serial(NLMISC::IStream &f)
45 f.serialVersion(0);
46 f.serial(RelativeLevel);
47 f.serial(SuccessProbability);
48 f.serial(PartialSuccessProbability);
51 std::vector<CSuccessEntry> SuccessTable;
54 public:
56 /// Constructor
57 CSuccessTableSheet()
59 Type = SUCCESS_TABLE;
62 /// destructor
63 virtual ~CSuccessTableSheet() {}
65 virtual void build(const NLGEORGES::UFormElm &root);
67 /// serialize
68 virtual void serial(NLMISC::IStream &f)
70 f.serialCont(SuccessTable);
77 #endif // NL_SUCCESS_TABLE_SHEET_H
79 /* End of success_table_sheet.h */