Public Attributes | List of all members
cwchess::CodeData Struct Reference

The POD base type of class Code. More...

#include <Code.h>

Inheritance diagram for cwchess::CodeData:
Inheritance graph
[legend]

Public Attributes

uint8_t M_bits
 0000CTTT, where C is the color and TTT the type.
 

Detailed Description

The POD base type of class Code.

This class represents a chess piece, either pawn, rook, knight, bishop, queen or king, and it's color, white or black.

See ColorData and TypeData for the encoding of the bits.

See also
Code, white_pawn, white_rook, white_knight, white_bishop, white_queen, white_king, black_pawn, black_rook, black_knight, black_bishop, black_queen, black_king

In order to refer to 'nothing', use the default constructor Code().

Definition at line 49 of file Code.h.


The documentation for this struct was generated from the following file:

Copyright © 2006 - 2010 Carlo Wood.  All rights reserved.