HoverRace  2.0
Rule.h
Go to the documentation of this file.
1 
2 // Rule.h
3 //
4 // Copyright (c) 2013 Michael Imamura.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 
22 #pragma once
23 
24 #include <luabind/object.hpp>
25 
26 namespace HoverRace {
27 namespace Client {
28 
33 class Rule
34 {
35  public:
36  Rule(const std::string &label="") : label(label) { }
37  virtual ~Rule() { }
38 
39  public:
40  virtual luabind::object GetDefault() const = 0;
41 
42  private:
43  std::string label;
44 };
45 
46 } // namespace Client
47 } // namespace HoverRace
Base class for a user-configurable rule in a Rulebook.
Definition: Rule.h:33
virtual luabind::object GetDefault() const =0
Definition: Announcement.h:24
Rule(const std::string &label="")
Definition: Rule.h:36
virtual ~Rule()
Definition: Rule.h:37
std::string label
Definition: Rule.h:43