new 4475edb243ed4627f4c5f2c470ca40b3def034d4
[tagua/yd.git] / src / variants / crazyhouse / validator.h
blob2935fb2eff7c5d347f4e0fdfde76d39f957be42c
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #ifndef CRAZYHOUSE__VALIDATOR_H
11 #define CRAZYHOUSE__VALIDATOR_H
13 #include <core/component.h>
14 #include <core/delegators/validator.h>
16 class IState;
17 class Move;
19 namespace Crazyhouse {
21 class Validator : public Component, public Delegators::Validator {
22 Q_OBJECT
23 public:
24 Validator(IValidator* validator);
25 virtual ~Validator();
27 virtual bool pseudolegal(const IState* state, Move& move) const;
28 const IColor* mover(const IState* state, const Move& move) const;
31 } // namespace Crazyhouse
33 #endif // CRAZYHOUSE__VALIDATOR_H