# Module `g3dchess.inc`

## Index

- Group `G3D.CP` - Chess piece constants
  - Constant `G3D.CP.BISHOP` - Bishop
  - Constant `G3D.CP.KING` - King
  - Constant `G3D.CP.KNIGHT` - Knight
  - Constant `G3D.CP.PAWN` - Pawn
  - Constant `G3D.CP.QUEEN` - Queen
  - Constant `G3D.CP.ROOK` - Rook/castle
- Channel type `G3DC.PIECE.CTL` - Used to control a particular piece
  - Variable `gen.ctl?` - Piece generator control
  - Variable `in?` - Piece control
  - Variable `pgn.ctl?` - Polygon convert control
  - Variable `prj.ctl?` - Projector control
  - Variable `rdr.ctl?` - Render control
- Protocol `G3DC.PIECE.CTL.IN` - Chess piece control
  - Tag `hide` - Whether to make hidden
  - Tag `move.pos` - Move piece to specified position (animate!)
  - Tag `set.pos` - Set piece position on board (0-7,0-7)

## Declarations

### `g3dchess.inc`:23Group `G3D.CP`

``

Chess piece constants.

### `g3dchess.inc`:24Constant `G3D.CP.PAWN`

`VAL INT G3D.CP.PAWN`

Pawn.

### `g3dchess.inc`:25Constant `G3D.CP.KNIGHT`

`VAL INT G3D.CP.KNIGHT`

Knight.

### `g3dchess.inc`:26Constant `G3D.CP.BISHOP`

`VAL INT G3D.CP.BISHOP`

Bishop.

### `g3dchess.inc`:27Constant `G3D.CP.ROOK`

`VAL INT G3D.CP.ROOK`

Rook/castle.

### `g3dchess.inc`:28Constant `G3D.CP.QUEEN`

`VAL INT G3D.CP.QUEEN`

Queen.

### `g3dchess.inc`:29Constant `G3D.CP.KING`

`VAL INT G3D.CP.KING`

King.

### `g3dchess.inc`:34Protocol `G3DC.PIECE.CTL.IN`

`PROTOCOL G3DC.PIECE.CTL.IN`

Chess piece control.

### `g3dchess.inc`:36Tag `set.pos`

`set.pos; INT; INT`

Set piece position on board (0-7,0-7).

### `g3dchess.inc`:37Tag `move.pos`

`move.pos; INT; INT`

Move piece to specified position (animate!).

### `g3dchess.inc`:38Tag `hide`

`hide; BOOL`

Whether to make hidden.

### `g3dchess.inc`:42Channel type `G3DC.PIECE.CTL`

`CHAN TYPE G3DC.PIECE.CTL`

Used to control a particular piece.

### `g3dchess.inc`:44Variable `in?`

`CHAN G3DC.PIECE.CTL.IN`

Piece control.

### `g3dchess.inc`:45Variable `gen.ctl?`

`CHAN G3D.GEN.CONTROL`

Piece generator control.

### `g3dchess.inc`:46Variable `prj.ctl?`

`CHAN G3D.PRJ.CONTROL`

Projector control.

### `g3dchess.inc`:47Variable `pgn.ctl?`

`CHAN G3D.PGN.CONTROL`

Polygon convert control.

### `g3dchess.inc`:48Variable `rdr.ctl?`

`CHAN G3D.RDR.CONTROL`

Render control.