usiState.h Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
usiState.h
Go to the documentation of this file.
1 /* usiState.h
2 */
3 #ifndef OSL_USISTATE_H
4 #define OSL_USISTATE_H
5 #include "osl/state/numEffectState.h"
6 #include "osl/stl/vector.h"
7 #include "osl/container/moveVector.h"
8
9 namespace osl
10 {
11 namespace game_playing
12 {
13 struct UsiState
14 {
15 SimpleState initial_state;
16 vector<Move> moves;
17 volatile bool aborted;
18
19 UsiState();
20 ~UsiState();
21
22 void reset(const SimpleState&, const vector<Move>&);
23 void parseUsi(const std::string&);
24 void openFile(std::string);
25 bool isSuccessorOf(const UsiState& parent);
26 const NumEffectState currentState() const;
27
28 const std::string usiString() const;
29 const std::string usiBoard() const;
30 void parseIgnoreMoves(const std::string& line,
31 MoveVector& ignore_moves) const;
32 };
33 }
34 using game_playing::UsiState;
35 }
36
37
38 #endif /* OSL_USISTATE_H */
39 // ;;; Local Variables:
40 // ;;; mode:c++
41 // ;;; c-basic-offset:2
42 // ;;; End: