Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
raceimpl.hpp
1 //////////////////////////////
2 //
3 // File: swrs/raceimpl.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 23 2013
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __RACE_IMPL_H__
15 #define __RACE_IMPL_H__
16 #include "swrs/featureimpl.hpp"
17 namespace SWRS
18 {
19  //! Character race represented [implementation
20  class RaceImpl: public FeatureImpl
21  {
22  typedef StringVector RacialSpecialRules;
23  RacialSpecialRules rsr;
24  typedef StringVector RacialSpecialRulesSimplifiedForm;
25  RacialSpecialRulesSimplifiedForm rsrsf;
26  public:
27  //! Add racial special rule
28  void SetRacialSpecialRule(const std::string & rule);
29  //! get vector of racial special rules
30  const std::vector<std::string> & GetRacialSpecialRules() const;
31  //! shortened form of racial special rules
32  const std::vector<std::string> & GetRacialSpecialRulesSimpleForm() const;
33  };
34 
35 }
36 #endif
37