tile.cpp File Reference

#include "tile.h"
#include <ctype.h>

Go to the source code of this file.

Defines

#define TILE_START   'A'
#define TILE_END   'Z'
#define TILE_JOKER   '?'
#define TILE_DUMMY   '%'
#define TILE_IDX_DUMMY   0
#define TILE_IDX_START   1
#define TILE_IDX_END   26
#define TILE_IDX_JOKER   27
#define TILES_NUMBER   28

Variables

const unsigned int Tiles_vowels [TILES_NUMBER]
const unsigned int Tiles_consonants [TILES_NUMBER]
const unsigned int Tiles_numbers [TILES_NUMBER]
const unsigned int Tiles_points [TILES_NUMBER]


Define Documentation

#define TILE_DUMMY   '%'
 

Definition at line 32 of file tile.cpp.

Referenced by Tile::toChar().

#define TILE_END   'Z'
 

Definition at line 30 of file tile.cpp.

Referenced by Tile::getAllTiles().

#define TILE_IDX_DUMMY   0
 

Definition at line 34 of file tile.cpp.

Referenced by Tile::toCode().

#define TILE_IDX_END   26
 

Definition at line 36 of file tile.cpp.

#define TILE_IDX_JOKER   27
 

Definition at line 37 of file tile.cpp.

Referenced by Tile::getPoints(), Tile::isConsonant(), Tile::isVowel(), and Tile::maxNumber().

#define TILE_IDX_START   1
 

Definition at line 35 of file tile.cpp.

Referenced by Tile::getPoints(), Tile::isConsonant(), Tile::isVowel(), Tile::maxNumber(), and Tile::toCode().

#define TILE_JOKER   '?'
 

Definition at line 31 of file tile.cpp.

Referenced by Tile::getAllTiles(), Tile::Tile(), and Tile::toChar().

#define TILE_START   'A'
 

Definition at line 29 of file tile.cpp.

Referenced by Tile::getAllTiles(), Tile::getPoints(), Tile::isConsonant(), Tile::isVowel(), Tile::maxNumber(), and Tile::toCode().

#define TILES_NUMBER   28
 

Definition at line 39 of file tile.cpp.


Variable Documentation

const unsigned int Tiles_consonants[TILES_NUMBER]
 

Initial value:

{

   0,0,1,1,1, 0,1,1,1,0,1, 1,1,1,1,0,1,1,1,1,1,0,1, 1, 1, 1, 1,1
}

Definition at line 48 of file tile.cpp.

Referenced by Tile::isConsonant().

const unsigned int Tiles_numbers[TILES_NUMBER]
 

Initial value:

{

   0,9,2,2,3,15,2,2,2,8,1, 1,5,3,6,6,2,1,6,6,6,6,2, 1, 1, 1, 1,2
}

Definition at line 54 of file tile.cpp.

Referenced by Tile::maxNumber().

const unsigned int Tiles_points[TILES_NUMBER]
 

Initial value:

{

   0,1,3,3,2, 1,4,2,4,1,8,10,1,2,1,1,3,8,1,1,1,1,4,10,10,10,10,0
}

Definition at line 60 of file tile.cpp.

Referenced by Tile::getPoints().

const unsigned int Tiles_vowels[TILES_NUMBER]
 

Initial value:

{

   0,1,0,0,0, 1,0,0,0,1,0, 0,0,0,0,1,0,0,0,0,0,1,0, 0, 0, 1, 0,1
}

Definition at line 42 of file tile.cpp.

Referenced by Tile::isVowel().


Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5