home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l040 / 10.ddi / CHESS.ZIP / OWCONST.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1992-10-27  |  4.4 KB  |  168 lines

  1. {************************************************}
  2. {                                                }
  3. {   ObjectWindows Chess Demo                     }
  4. {   Constant definitions                         }
  5. {   Copyright (c) 1992 by Borland International  }
  6. {                                                }
  7. {************************************************}
  8.  
  9. unit OWConst;
  10.  
  11. interface
  12.  
  13. const
  14.     bmChessPiecesBaseID     =     12000;
  15.  
  16.     curNo        =    100;
  17.     curGrabHandOpen    =    101;
  18.  
  19.     bmWhiteKing    =    bmChessPiecesBaseID + 1;
  20.     bmWhiteQueen    =    bmChessPiecesBaseID + 2;
  21.     bmWhiteRook    =    bmChessPiecesBaseID + 3;
  22.     bmWhiteBishop    =    bmChessPiecesBaseID + 4;
  23.     bmWhiteKnight    =    bmChessPiecesBaseID + 5;
  24.     bmWhitePawn    =    bmChessPiecesBaseID + 6;
  25.     BlackOfs    =    6;
  26.     bmBlackKing    =    bmWhiteKing + BlackOfs ;
  27.     bmBlackQueen    =    bmWhiteQueen + BlackOfs ;
  28.     bmBlackRook    =    bmWhiteRook + BlackOfs ;
  29.     bmBlackBishop    =    bmWhiteBishop + BlackOfs ;
  30.     bmBlackKnight    =    bmWhiteKnight + BlackOfs ;
  31.     bmBlackPawn    =    bmWhitePawn + BlackOfs ;
  32.         MaskOfs         =       12;
  33.     bmMaskKing    =    bmWhiteKing + MaskOfs ;
  34.     bmMaskQueen    =    bmWhiteQueen + MaskOfs ;
  35.     bmMaskRook    =    bmWhiteRook + MaskOfs ;
  36.     bmMaskBishop    =    bmWhiteBishop + MaskOfs ;
  37.     bmMaskKnight    =    bmWhiteKnight + MaskOfs;
  38.     bmMaskPawn    =    bmWhitePawn + MaskOfs;
  39.  
  40.     curInvisible    =    curGrabHandOpen + 2;
  41.  
  42.         wm_User         =       $0400;
  43.         am_SubmitMove   =       wm_User + 150;
  44.         am_ChoosePawnPromote =  wm_User + 151;
  45.  
  46.         strNoMoreUndos  =       10;
  47.         strNoMoreRedos  =       11;
  48.         cxChessError    =       20;
  49.     cxChessState    =    40;
  50.  
  51.     cm_NewGame    =    101;
  52.     idMainMenu    =    100;
  53.     cm_UndoMove    =    201;
  54.     cm_RedoMove    =    202;
  55.  
  56.     dlgInfoPane    =    100;
  57.     dlgBoardFrame    =    101;
  58.     cm_AutoPlay    =    107;
  59.     dlgSettings    =    102;
  60.     idInfoTurn    =    101;
  61.     idInfoTime    =    102;
  62.     idInfoWhite    =    103;
  63.     idInfoBlack    =    104;
  64.     idInfoMode    =    105;
  65.     idInfoValue    =    106;
  66.     idInfoNodes    =    107;
  67.     idInfoNPSec    =    108;
  68.     idMovesListbox    =    109;
  69.     idInfoBestLine    =    110;
  70.     idInfoMsg    =    111;
  71.     idLimitGameTime    =    101;
  72.     idLimitTurnTime    =    102;
  73.     idMatchUserTime    =    103;
  74.     idNoTimeLimit    =    104;
  75.     idTimeLimitGroup    =    200;
  76.     idLimitGameTimeLabel    =    201;
  77.     idLimitGameTimeInput    =    202;
  78.     idLimitTurnTimeLabel    =    203;
  79.     idLimitTurnTimeInput    =    204;
  80.     idShowAttacks    =    301;
  81.     idShowJeopardies    =    302;
  82.     idShowBestLine    =    303;
  83.     idRightClickQueries    =    304;
  84.     idSinglePlayer    =    401;
  85.     idTwoPlayer    =    402;
  86.     idThinkTime    =    501;
  87.     cm_LoadGame    =    102;
  88.     cm_SaveGame    =    103;
  89.     cm_SaveAs    =    104;
  90.     cm_PauseGame    =    105;
  91.     cm_ComputerMove    =    203;
  92.     cm_InputMove    =    204;
  93.     cm_ShowHintMove    =    205;
  94.     cm_Settings    =    301;
  95.     cm_SetColors    =    302;
  96.     idThinkMenu    =    1000;
  97.     cm_StopThinking    =    1001;
  98.         TimeLimitInputLen=5;
  99.     idGameTimeUnit    =    205;
  100.     idTurnTimeUnit    =    206;
  101.     chstrInvalidHandle    =    cxChessError + 1;
  102.     chstrIllegalState    =    cxChessError + 2;
  103.     chstrOutofMemory    =    cxChessError + 3;
  104.     chstrTooManyGames    =    cxChessError + 4;
  105.     chstrInvalidMove    =    cxChessError + 5;
  106.     chstrIllegalMove    =    cxChessError + 6;
  107.     chstrInvalidSyntax    =    cxChessError + 7;
  108.     chstrAmbiguousMove    =    cxChessError + 8;
  109.     chstrNoMovesLeft    =    cxChessError + 9;
  110.     cxSearchState    =    60;
  111.     chstrCheck    =    cxChessState + 1;
  112.     chstrCheckMate    =    cxChessState + 2;
  113.     chstrStalemate    =    cxChessState + 3;
  114.     chstrResigns    =    cxChessState + 4;
  115.     chstrMateFound    =    cxChessState + 5;
  116.     chstr50MoveRule    =    cxChessState + 6;
  117.     chstrRepititionRule    =    cxChessState + 7;
  118.     strLeaveGame    =    101;
  119.     strCancelGame    =    100;
  120.     strWhiteWins    =    102;
  121.     strGameOver    =    103;
  122.     strBlackWins    =    104;
  123.     strLoadError    =    105;
  124.     cxStreamError    =    89;
  125.     ststrError    =    cxStreamError - 1;
  126.     ststrReadError    =    cxStreamError - 3;
  127.     ststrInitError    =    87;
  128.     ststrWriteError    =    cxStreamError - 4;
  129.     ststrGetError    =    cxStreamError - 5;
  130.     ststrPutError    =    cxStreamError - 6;
  131.     strInvalidFile    =    106;
  132.     strNotAChessFile    =    107;
  133.     strSaveError    =    108;
  134.     strStartNewGame    =    109;
  135.     strLoadSavedGame    =    110;
  136.     strWhite    =    111;
  137.     strBlack    =    112;
  138.     strPauseMenu    =    113;
  139.     strResumeMenu    =    114;
  140.     strStaleMate    =    115;
  141.     bmFence    =    300;
  142.     dlgCoverBoard    =    103;
  143.     idCoverGroup    =    101;
  144.     idCoverText    =    102;
  145.     cxGameMode    =    116;
  146.     strOnePlayer    =    116;
  147.     strTwoPlayer    =    117;
  148.     strAutoPlay    =    118;
  149.     strGameTimeExpired    =    121;
  150.     strTurnTimeExpired    =    120;
  151.     strStartupMode    =    119;
  152.     idQueen         =    101;
  153.     idRook          =    102;
  154.     idBishop    =    103;
  155.     idKnight    =    104;
  156.     dlgChoosePawnPromote    =    104;
  157.     idBoardShade    =    101;
  158.     idAllowThinkAhead    =    601;
  159.     idCoverBoard    =    602;
  160.     dlgEnterMove    =    105;
  161.     cm_EnterMove    =    204;
  162.     idEnterMoveEdit    =    101;
  163.     strGamePaused    =    122;
  164.     bmBlaise    =    1100;
  165.     cm_About    =    401;
  166. implementation
  167.  
  168. end.