00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef EASYSOK_ATOMIC_MOVE_INC_GUARD_H
00022 #define EASYSOK_ATOMIC_MOVE_INC_GUARD_H
00023
00024
00025 #include <qpoint.h>
00026 #include <qstring.h>
00027
00028
00029
00030
00041 class AtomicMove
00042 {
00043
00044 public:
00045
00050 enum AtomicMoveType
00051 {
00052
00057 LEFT,
00058
00059
00064 RIGHT,
00065
00066
00071 UP,
00072
00073
00078 DOWN
00079 };
00080
00081
00088 AtomicMove(AtomicMoveType type);
00089
00090
00095 AtomicMoveType type() const;
00096
00097
00107 QPoint const & diff() const;
00108
00109
00114 QString toText() const;
00115
00116
00117 private:
00118
00123 AtomicMoveType m_type;
00124
00125
00130 static QPoint const s_diffs[4];
00131 };
00132
00133
00134 #endif