classifier.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
classifier.cc
Go to the documentation of this file.
1 /* classifier.cc
2 */
3 #include "osl/move_classifier/classifier.h"
4 #include "osl/move_classifier/safeMove.h"
5 #include "osl/move_classifier/check_.h"
6 #include "osl/move_classifier/moveAdaptor.h"
7
8 bool osl::move_classifier::
9 Classifier::isSafeMove(const NumEffectState& state, Move move)
10 {
11 return ConditionAdaptor<SafeMove>::isMember(state, move);
12 }
13
14 bool osl::move_classifier::
15 Classifier::isCheck(const NumEffectState& state, Move move)
16 {
17 return PlayerMoveAdaptor<Check>::isMember(state, move);
18 }
19
20 // ;;; Local Variables:
21 // ;;; mode:c++
22 // ;;; c-basic-offset:2
23 // ;;; End: