File: utils.h

package info (click to toggle)
brutalchess 0.5.2%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 7,404 kB
  • sloc: cpp: 7,561; sh: 2,707; makefile: 73; ansic: 9
file content (33 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************
 * Brutal Chess
 * http://brutalchess.sf.net
 *
 * File : utils.h
 * Authors : Mike Cook, Joe Flint, Neil Pankey
 **************************************************************************/

#ifndef UTILS_H
#define UTILS_H

#include "boardtheme.h"
#include "chessplayer.h"
#include "pieceset.h"

using std::string;
using std::vector;

void Quit(int returnCode);

BoardTheme* toBoard(BoardType board);
ChessPlayer* toPlayer(PlayerType player);
PieceSet* toPieces(PiecesType pieces);

void parseCommandLine(int argc, char* argv[]);

void printUsage();

int numParams(const vector<string>& args, int i);

#endif

// end of file utils.h