push 916d6ae32ef88182ddeeedd2a4b2365cc3694db5
[tagua/yd.git] / src / icsaction.h
blob4bea1d1307c7c018065e8a96cf6f339a9b84f8c0
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 ICSACTION_H
12 #define ICSACTION_H
14 class ICSAction {
15 public:
16 enum Direction {
17 Forward,
18 Back
20 private:
21 Direction m_direction;
22 int m_moves;
23 QString m_actor;
24 public:
25 ICSAction(const Direction& direction, int moves, const QString& actor)
26 : m_direction(direction)
27 , m_moves(moves)
28 , m_actor(actor) { }
30 Direction direction() const { return m_direction; }
31 int moves() const { return m_moves; }
32 QString actor() const { return m_actor; }
35 #endif // ICSACTION_H