Update for doxygen 1.5.5, graph generation, and match current code.
[tagua/yd.git] / src / agent.h
blob35faf38479f9f84f8bfac30d42e0aa47ccbb535a
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
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 class Index;
16 class Agent {
17 protected:
18 bool m_active;
19 public:
20 virtual ~Agent() { }
21 Agent() : m_active(true) { }
22 virtual void notifyClockUpdate(int, int) = 0;
23 virtual void notifyMove(const Index& index) = 0;
24 virtual void notifyBack() = 0;
25 virtual void notifyForward() = 0;
26 virtual void notifyGotoFirst() = 0;
27 virtual void notifyGotoLast() = 0;
28 virtual void stop() { m_active = false; }
29 bool active() const { return m_active; }
32 #endif // AGENT_H