Move declarations for chance.c to new chance.h
This commit is contained in:
parent
3c470925b6
commit
8eb78a5a80
52 changed files with 91 additions and 5 deletions
40
include/chance.h
Normal file
40
include/chance.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Empire - A multi-player, client/server Internet based war game.
|
||||
* Copyright (C) 1986-2012, Dave Pare, Jeff Bailey, Thomas Ruschak,
|
||||
* Ken Stevens, Steve McClure, Markus Armbruster
|
||||
*
|
||||
* Empire 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* See files README, COPYING and CREDITS in the root of the source
|
||||
* tree for related information and legal notices. It is expected
|
||||
* that future projects/authors will amend these files as needed.
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* chance.h: Roll dice
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2012
|
||||
*/
|
||||
|
||||
#ifndef CHANCE_H
|
||||
#define CHANCE_H
|
||||
|
||||
extern int chance(double);
|
||||
extern int roll(int);
|
||||
extern int roundavg(double);
|
||||
|
||||
#endif
|
|
@ -306,9 +306,6 @@ extern int fsize(int);
|
|||
extern int blksize(int);
|
||||
extern time_t fdate(int);
|
||||
|
||||
extern int roll(int);
|
||||
extern int roundavg(double);
|
||||
extern int chance(double);
|
||||
extern int disassoc(void);
|
||||
extern char *effadv(int);
|
||||
extern int parse(char *, char *, char **, char **, char **, char **);
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "item.h"
|
||||
#include "optlist.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "combat.h"
|
||||
#include "commands.h"
|
||||
#include "empobj.h"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "damage.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <limits.h>
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "game.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "commodity.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "land.h"
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "treaty.h"
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "damage.h"
|
||||
#include "mission.h"
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "empobj.h"
|
||||
#include "map.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "empobj.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "item.h"
|
||||
#include "map.h"
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "match.h"
|
||||
#include "misc.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "land.h"
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "item.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "map.h"
|
||||
#include "optlist.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "item.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "news.h"
|
||||
#include "retreat.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "commodity.h"
|
||||
#include "empobj.h"
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "commands.h"
|
||||
#include "land.h"
|
||||
#include "optlist.h"
|
||||
|
|
|
@ -32,10 +32,10 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "nat.h"
|
||||
#include "optlist.h"
|
||||
#include "prototypes.h"
|
||||
#include "sect.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,7 +33,8 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <math.h>
|
||||
#include "prototypes.h"
|
||||
#include <stdlib.h>
|
||||
#include "chance.h"
|
||||
|
||||
int
|
||||
chance(double d)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "empio.h"
|
||||
#include "empthread.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "land.h"
|
||||
#include "map.h"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include "chance.h"
|
||||
#include "combat.h"
|
||||
#include "empobj.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "damage.h"
|
||||
#include "land.h"
|
||||
#include "misc.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "land.h"
|
||||
#include "map.h"
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "damage.h"
|
||||
#include "file.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "land.h"
|
||||
#include "misc.h"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include "chance.h"
|
||||
#include "combat.h"
|
||||
#include "damage.h"
|
||||
#include "empobj.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "chance.h"
|
||||
#include "empobj.h"
|
||||
#include "file.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include "chance.h"
|
||||
#include "damage.h"
|
||||
#include "file.h"
|
||||
#include "map.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "misc.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "nat.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "empobj.h"
|
||||
#include "file.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "damage.h"
|
||||
#include "file.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "land.h"
|
||||
#include "map.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "chance.h"
|
||||
#include "damage.h"
|
||||
#include "empobj.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <math.h>
|
||||
#include "chance.h"
|
||||
#include "empobj.h"
|
||||
#include "file.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "file.h"
|
||||
#include "empobj.h"
|
||||
#include "game.h"
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "update.h"
|
||||
|
||||
int
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include <math.h>
|
||||
#include "chance.h"
|
||||
#include "item.h"
|
||||
#include "news.h"
|
||||
#include "player.h"
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include <math.h>
|
||||
#include "budg.h"
|
||||
#include "chance.h"
|
||||
#include "land.h"
|
||||
#include "lost.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include "budg.h"
|
||||
#include "chance.h"
|
||||
#include "player.h"
|
||||
#include "update.h"
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "item.h"
|
||||
#include "lost.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include "budg.h"
|
||||
#include "chance.h"
|
||||
#include "lost.h"
|
||||
#include "plane.h"
|
||||
#include "player.h"
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "lost.h"
|
||||
#include "update.h"
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include "budg.h"
|
||||
#include "chance.h"
|
||||
#include "player.h"
|
||||
#include "product.h"
|
||||
#include "update.h"
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include "chance.h"
|
||||
#include "land.h"
|
||||
#include "lost.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include "budg.h"
|
||||
#include "chance.h"
|
||||
#include "item.h"
|
||||
#include "land.h"
|
||||
#include "lost.h"
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include <math.h>
|
||||
#include "budg.h"
|
||||
#include "chance.h"
|
||||
#include "land.h"
|
||||
#include "lost.h"
|
||||
#include "news.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue