Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

goplayutils.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 #ifndef __goplayutils_h
00021 #define __goplayutils_h
00022 
00023 #define iNil 32767 /* a distinguished value like nil */
00024 #define  maxGroup 512
00025 #define  maxSPoint 16
00026 #define tryLimit 300
00027 
00028 typedef short intBoard[19][19];  /* these were -2 to maxPoint + 2 */
00029 
00030 typedef short boolBoard[19][19];
00031 
00032 typedef struct
00033 {
00034    short px, py;
00035 } point;
00036 
00037 typedef struct
00038 {
00039    point p[401];
00040    short indx;
00041 } pointList;
00042 
00043 typedef struct
00044 {
00045   point p[maxSPoint+1];
00046   short indx;
00047 } sPointList;
00048 
00049 typedef struct
00050 {
00051    short indx,
00052    v[401];
00053 } intList;
00054    
00055 typedef struct { short w, s, sm; } sgRec;
00056 
00057 typedef struct
00058 {
00059    short groupMark,
00060          atLevel,
00061          isLive,
00062          isDead,
00063          libC,
00064          numEyes,
00065          size,
00066          lx, ly;
00067 } groupRec;
00068 
00069 typedef enum {rem, add, chLib, reMap} playType;
00070 
00071 typedef struct { short who, xl, yl, nextGID, sNumber; } remAddRec;
00072 typedef struct { short oldLC, oldLevel; } chLibRec;
00073 typedef struct { short oldGID; } reMapRec;
00074 typedef struct
00075 {
00076    short gID;
00077    playType kind;
00078    union {
00079       remAddRec rem, add;
00080       chLibRec chLib;
00081       reMapRec reMap;
00082    } uval;
00083 } playRec;
00084 
00085 #endif

Generated on Sat Nov 5 16:17:19 2005 for OPIE by  doxygen 1.4.2