File: admin.h

package info (click to toggle)
pioneers 15.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,584 kB
  • sloc: ansic: 43,583; sh: 4,353; makefile: 874; xml: 24
file content (40 lines) | stat: -rw-r--r-- 1,398 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
/* Pioneers - Implementation of the excellent Settlers of Catan board game.
 *   Go buy a copy.
 *
 * Copyright (C) 1999 Dave Cole
 * Copyright (C) 2003 Bas Wijnen <shevek@fmf.nl>
 * Copyright (C) 2013 Roland Clobus <rclobus@rclobus.nl>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef __admin_h
#define __admin_h

#include "server.h"

/** Set up the administration interface.
 * @param port Port to listen on
 * @param game The game to administrate
 * @return TRUE on success
 */
gboolean admin_init(const gchar * port, Game ** game);

/** Get the dice roll that was determined by the administrator.
 * @return 0 when not fixed, otherwise the dice roll
 */
gint admin_get_dice_roll(void);

#endif				/* __admin_h */