new 4475edb243ed4627f4c5f2c470ca40b3def034d4
[tagua/yd.git] / src / core / defaultpolicy.h
blob52bb4cb70f35485917b0c797b9a647005ec8c692
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 CORE__DEFAULTPOLICY_H
11 #define CORE__DEFAULTPOLICY_H
13 #include "component.h"
14 #include "policy.h"
16 class TAGUA_EXPORT DefaultPolicy : public Component, public IPolicy {
17 Q_OBJECT
18 public Q_SLOTS:
19 virtual InteractionType movable(const IState* state,
20 const TurnTest& test,
21 const Point& p) const;
23 virtual InteractionType droppable(const IState* state,
24 const TurnTest& test,
25 const IColor* pool) const;
28 #endif // CORE__DEFAULTPOLICY_H