author | mickeyl <mickeyl> | 2003-05-17 13:52:25 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-17 13:52:25 (UTC) |
commit | 1aa5c1fc6ef4b7b4e520e6265e6b53c18f025b83 (patch) (side-by-side diff) | |
tree | 6e98d8318cb9d99c9daa986e273ba6c4ed8d6dfc | |
parent | bc581ecfb47325fc6b8c8558b596f643002401b6 (diff) | |
download | opie-1aa5c1fc6ef4b7b4e520e6265e6b53c18f025b83.zip opie-1aa5c1fc6ef4b7b4e520e6265e6b53c18f025b83.tar.gz opie-1aa5c1fc6ef4b7b4e520e6265e6b53c18f025b83.tar.bz2 |
backgammon compiles again
-rw-r--r-- | noncore/games/backgammon/backgammon.pro | 38 | ||||
-rw-r--r-- | noncore/games/backgammon/backgammonview.h | 3 | ||||
-rw-r--r-- | noncore/games/backgammon/moveengine.cpp | 2 |
3 files changed, 22 insertions, 21 deletions
diff --git a/noncore/games/backgammon/backgammon.pro b/noncore/games/backgammon/backgammon.pro index 6f77a14..4be9491 100644 --- a/noncore/games/backgammon/backgammon.pro +++ b/noncore/games/backgammon/backgammon.pro @@ -1,34 +1,34 @@ TEMPLATE = app CONFIG = qt warn_on release HEADERS = backgammon.h \ - canvasimageitem.h \ - themedialog.h \ - moveengine.h \ - filedialog.h \ - playerdialog.h \ - aidialog.h \ - rulesdialog.h \ - displaydialog.h \ - definition.h + backgammonview.h \ + canvasimageitem.h \ + themedialog.h \ + moveengine.h \ + filedialog.h \ + playerdialog.h \ + aidialog.h \ + rulesdialog.h \ + definition.h SOURCES = main.cpp \ - backgammon.cpp \ - canvasimageitem.cpp \ - themedialog.cpp \ - moveengine.cpp \ - filedialog.cpp \ - playerdialog.cpp \ - aidialog.cpp \ - rulesdialog.cpp \ - displaydialog.cpp \ - definition.cpp + backgammon.cpp \ + backgammonview.cpp \ + canvasimageitem.cpp \ + themedialog.cpp \ + moveengine.cpp \ + filedialog.cpp \ + playerdialog.cpp \ + aidialog.cpp \ + rulesdialog.cpp \ + definition.cpp TARGET = backgammon INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lstdc++ DESTDIR = $(OPIEDIR)/bin include ( $(OPIEDIR)/include.pro ) diff --git a/noncore/games/backgammon/backgammonview.h b/noncore/games/backgammon/backgammonview.h index 52508e2..81f1973 100644 --- a/noncore/games/backgammon/backgammonview.h +++ b/noncore/games/backgammon/backgammonview.h @@ -6,13 +6,14 @@ class BackGammonView : public QCanvasView { Q_OBJECT public: BackGammonView(QCanvas* canvas,QWidget* parent); ~BackGammonView(); signals: void mouse(int,int); private: void contentsMousePressEvent(QMouseEvent* e); }; -#endif //BACKGAMMON_VIEW_H
\ No newline at end of file +#endif //BACKGAMMON_VIEW_H + diff --git a/noncore/games/backgammon/moveengine.cpp b/noncore/games/backgammon/moveengine.cpp index 009c449..37b73a6 100644 --- a/noncore/games/backgammon/moveengine.cpp +++ b/noncore/games/backgammon/moveengine.cpp @@ -1,17 +1,17 @@ #include "moveengine.h" #include <qmessagebox.h> - #include <qtimer.h> +#include <stdlib.h> MoveEngine::MoveEngine() : QObject() { int offset=7; int a=0; //counter variable int xfill[]={210,185,170,155,140,125,110,85,70,55,40,25,10,10,25,40,55,70,85,110,125,140,155,170,185,210}; for(a=0;a<26;a++) { x_coord[a]=xfill[a]; } |