00001 //---------------------------------------------------------------------------- 00002 /** @file 00003 */ 00004 //---------------------------------------------------------------------------- 00005 00006 #ifndef HEXPOINT13x13_HPP 00007 #define HEXPOINT13x13_HPP 00008 00009 /** A location on a Hex board. A HexPoint's neighbours can be 00010 calculated only when considering what size board the point is in. 00011 See ConstBoard for an example board layout. 00012 00013 @note The order of these points if very important. There are 00014 several pieces of code that rely on this ordering 00015 (StoneBoard::GetBoardID() is one of them). Change this only if you 00016 know what you are doing! 00017 */ 00018 typedef enum 00019 { 00020 /** Dummy point. */ 00021 INVALID_POINT = 0, 00022 00023 /** Point used to denote a resign move by a player. 00024 00025 @todo since this is not really a point on a board, should we 00026 create a HexMove class and put this there? */ 00027 RESIGN = 1, 00028 00029 /** Point used to denote a swap move by a player. 00030 00031 @todo since this is not really a point on a board, should 00032 we create a HexMove class and put this there? */ 00033 SWAP_PIECES = 2, 00034 00035 /** The top edge. */ 00036 NORTH = 3, 00037 00038 /** The right edge. */ 00039 EAST = 4, 00040 00041 /** The bottom edge. */ 00042 SOUTH = 5, 00043 00044 /** The left edge. */ 00045 WEST = 6, 00046 00047 /** @name Interior cells. */ 00048 // @{ 00049 00050 HEX_CELL_A1, HEX_CELL_B1, HEX_CELL_C1, HEX_CELL_D1, HEX_CELL_E1, 00051 HEX_CELL_F1, HEX_CELL_G1, HEX_CELL_H1, HEX_CELL_I1, HEX_CELL_J1, 00052 HEX_CELL_K1, HEX_CELL_L1, HEX_CELL_M1, 00053 00054 HEX_CELL_A2, HEX_CELL_B2, HEX_CELL_C2, HEX_CELL_D2, HEX_CELL_E2, 00055 HEX_CELL_F2, HEX_CELL_G2, HEX_CELL_H2, HEX_CELL_I2, HEX_CELL_J2, 00056 HEX_CELL_K2, HEX_CELL_L2, HEX_CELL_M2, 00057 00058 HEX_CELL_A3, HEX_CELL_B3, HEX_CELL_C3, HEX_CELL_D3, HEX_CELL_E3, 00059 HEX_CELL_F3, HEX_CELL_G3, HEX_CELL_H3, HEX_CELL_I3, HEX_CELL_J3, 00060 HEX_CELL_K3, HEX_CELL_L3, HEX_CELL_M3, 00061 00062 HEX_CELL_A4, HEX_CELL_B4, HEX_CELL_C4, HEX_CELL_D4, HEX_CELL_E4, 00063 HEX_CELL_F4, HEX_CELL_G4, HEX_CELL_H4, HEX_CELL_I4, HEX_CELL_J4, 00064 HEX_CELL_K4, HEX_CELL_L4, HEX_CELL_M4, 00065 00066 HEX_CELL_A5, HEX_CELL_B5, HEX_CELL_C5, HEX_CELL_D5, HEX_CELL_E5, 00067 HEX_CELL_F5, HEX_CELL_G5, HEX_CELL_H5, HEX_CELL_I5, HEX_CELL_J5, 00068 HEX_CELL_K5, HEX_CELL_L5, HEX_CELL_M5, 00069 00070 HEX_CELL_A6, HEX_CELL_B6, HEX_CELL_C6, HEX_CELL_D6, HEX_CELL_E6, 00071 HEX_CELL_F6, HEX_CELL_G6, HEX_CELL_H6, HEX_CELL_I6, HEX_CELL_J6, 00072 HEX_CELL_K6, HEX_CELL_L6, HEX_CELL_M6, 00073 00074 HEX_CELL_A7, HEX_CELL_B7, HEX_CELL_C7, HEX_CELL_D7, HEX_CELL_E7, 00075 HEX_CELL_F7, HEX_CELL_G7, HEX_CELL_H7, HEX_CELL_I7, HEX_CELL_J7, 00076 HEX_CELL_K7, HEX_CELL_L7, HEX_CELL_M7, 00077 00078 HEX_CELL_A8, HEX_CELL_B8, HEX_CELL_C8, HEX_CELL_D8, HEX_CELL_E8, 00079 HEX_CELL_F8, HEX_CELL_G8, HEX_CELL_H8, HEX_CELL_I8, HEX_CELL_J8, 00080 HEX_CELL_K8, HEX_CELL_L8, HEX_CELL_M8, 00081 00082 HEX_CELL_A9, HEX_CELL_B9, HEX_CELL_C9, HEX_CELL_D9, HEX_CELL_E9, 00083 HEX_CELL_F9, HEX_CELL_G9, HEX_CELL_H9, HEX_CELL_I9, HEX_CELL_J9, 00084 HEX_CELL_K9, HEX_CELL_L9, HEX_CELL_M9, 00085 00086 HEX_CELL_A10, HEX_CELL_B10, HEX_CELL_C10, HEX_CELL_D10, HEX_CELL_E10, 00087 HEX_CELL_F10, HEX_CELL_G10, HEX_CELL_H10, HEX_CELL_I10, HEX_CELL_J10, 00088 HEX_CELL_K10, HEX_CELL_L10, HEX_CELL_M10, 00089 00090 HEX_CELL_A11, HEX_CELL_B11, HEX_CELL_C11, HEX_CELL_D11, HEX_CELL_E11, 00091 HEX_CELL_F11, HEX_CELL_G11, HEX_CELL_H11, HEX_CELL_I11, HEX_CELL_J11, 00092 HEX_CELL_K11, HEX_CELL_L11, HEX_CELL_M11, 00093 00094 HEX_CELL_A12, HEX_CELL_B12, HEX_CELL_C12, HEX_CELL_D12, HEX_CELL_E12, 00095 HEX_CELL_F12, HEX_CELL_G12, HEX_CELL_H12, HEX_CELL_I12, HEX_CELL_J12, 00096 HEX_CELL_K12, HEX_CELL_L12, HEX_CELL_M12, 00097 00098 HEX_CELL_A13, HEX_CELL_B13, HEX_CELL_C13, HEX_CELL_D13, HEX_CELL_E13, 00099 HEX_CELL_F13, HEX_CELL_G13, HEX_CELL_H13, HEX_CELL_I13, HEX_CELL_J13, 00100 HEX_CELL_K13, HEX_CELL_L13, HEX_CELL_M13, 00101 00102 // @} 00103 00104 /** The invalid HexPoint. */ 00105 FIRST_INVALID 00106 00107 } HexPoint; 00108 00109 //---------------------------------------------------------------------------- 00110 00111 #endif