Debian Codegraph @

src/level/Goal.h

raw
1 #ifndef HEADER_GOAL_H
2 #define HEADER_GOAL_H
3
4 class Cube;
5
6 /**
7 * Goal for model.
8 */
9 class Goal {
10 private:
11 enum eSATISFY {
12 SATISFY_TRUE,
13 SATISFY_FALSE,
14 SATISFY_IGNORE
15 };
16
17 eSATISFY m_alive;
18 eSATISFY m_out;
19 private:
20 Goal(eSATISFY out, eSATISFY alive);
21 public:
22 static Goal noGoal();
23 static Goal outGoal();
24 static Goal escapeGoal();
25 static Goal aliveGoal();
26
27 bool isSatisfy(const Cube *model) const;
28 bool isWrong(const Cube *model) const;
29 bool shouldGoOut() const;
30 };
31
32 #endif