author | mickeyl <mickeyl> | 2003-04-01 22:18:03 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-01 22:18:03 (UTC) |
commit | a46668f70b74f27689afb956ff085d42c0775328 (patch) (side-by-side diff) | |
tree | 24e1477b919aa4453d8724512ed7dd9659d040dc /noncore/games | |
parent | 76b83c2b77e626fadf1d1bbbfd19a9a8a795334b (diff) | |
download | opie-a46668f70b74f27689afb956ff085d42c0775328.zip opie-a46668f70b74f27689afb956ff085d42c0775328.tar.gz opie-a46668f70b74f27689afb956ff085d42c0775328.tar.bz2 |
- backgammon: g++3 fix
- add skeleton for opie-camera application
-rw-r--r-- | noncore/games/backgammon/moveengine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/games/backgammon/moveengine.cpp b/noncore/games/backgammon/moveengine.cpp index 009c449..8106b3f 100644 --- a/noncore/games/backgammon/moveengine.cpp +++ b/noncore/games/backgammon/moveengine.cpp @@ -1,30 +1,32 @@ #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]; } int yfill[]={10,25,40,55,70,10+offset,25+offset,40+offset,55+offset,25,40,55, 25+offset,40+offset,40}; int zfill[]={1,1,1,1,1,2,2,2,2,3,3,3,4,4,5}; for(a=0;a<15;a++) { yup_coord[a]=yfill[a]; ylow_coord[a]=185-(yfill[a]); z_coord[a]=zfill[a]; } for(a=0;a<5;a++) { if(a<3) { x_fin1[a]=65+a*15; |