Moved global.* to mastersettings.*, and converted many error messages to use the...
[tagua/yd.git] / src / icsaction.h
blob8aedc667ad952a58f71fa8a01319e31f6486af5a
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 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