Removed AlgebraicNotation from the variant API.
[tagua/yd.git] / src / agent.h
blob2773ef5e4af62e0dd23d0d801313db0131cfcee8
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef AGENT_H
12 #define AGENT_H
14 #include "fwd.h"
15 class Index;
17 class Agent {
18 protected:
19 bool m_active;
20 public:
21 virtual ~Agent() { }
22 Agent() : m_active(true) { }
23 virtual void notifyClockUpdate(int, int) = 0;
24 virtual void notifyMove(const Index& index) = 0;
25 virtual void notifyBack() = 0;
26 virtual void notifyForward() = 0;
27 virtual void notifyGotoFirst() = 0;
28 virtual void notifyGotoLast() = 0;
29 virtual void stop() { m_active = false; }
30 bool active() const { return m_active; }
33 #endif // AGENT_H