/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* prototypes.h: Prototypes for server functions
- *
+ *
* Known contributors to this file:
* Curtis Larsen, 1998
* Steve McClure, 1998,2000
/* in empthread.h */
/*
- * src/lib/commands/ *.c
+ * src/lib/commands/ *.c
*/
extern int check_market(void);
extern void gift(natid, natid, void *, char *);
double *minmob, double *maxmob);
extern int count_pop(int);
extern int scuttle_tradeship(struct shpstr *, int);
-extern void scuttle_ship(struct shpstr *);
extern void resnoise(struct sctstr *sptr, int public_amt, char *name,
int old, int new);
extern int line_of_sight(char **rad, int ax, int ay, int bx, int by);
extern int do_look(short);
extern int radar(short);
extern void update_power(void);
+extern int show_first_tel(char *);
/* Commands */
int acce(void);
int add(void);
int look(void);
int lost(void);
int lrad(void);
-int lrange(void);
int lretr(void);
int lsta(void);
int ltend(void);
int zdon(void);
/*
- * src/lib/common/ *.c
+ * src/lib/common/ *.c
*/
/* bestpath.c */
extern char *bestownedpath(char *, char *, int, int, int, int, int);
/* in xdump.h */
/*
- * src/lib/gen/ *.c
+ * src/lib/gen/ *.c
*/
/* fnameat.c */
extern char *fnameat(const char *, const char *);
/* more in misc.h */
/*
- * src/lib/global/ *.c
+ * src/lib/global/ *.c
*/
extern void global_init(void);
/*
- * src/lib/player/ *.c
+ * src/lib/player/ *.c
*/
/* accept.c */
extern void player_init(void);
extern int getcommand(char *);
extern void init_player_commands(void);
extern void log_last_commands(void);
-extern int gamedown(void);
-extern void daychange(time_t);
-extern int getminleft(time_t, int);
+extern void update_timeused_login(time_t now);
+extern void update_timeused(time_t now);
+extern void enforce_minimum_session_time(void);
+extern int may_play_now(struct natstr *, time_t);
/* more under Commands */
/* empmod.c */
/* init_nats.c */
/* more in service.h */
/*
- * src/lib/subs/ *.c
+ * src/lib/subs/ *.c
*/
/* askyn.c */
extern int confirm(char *);
extern int unit_interdict(coord, coord, natid, char *, int, int);
extern int off_support(coord, coord, natid, natid);
extern int def_support(coord, coord, natid, natid);
-extern int oprange(struct empobj *, int *);
+extern int oprange(struct empobj *);
+extern int in_oparea(struct empobj *, coord, coord);
extern int cando(int, int);
-extern void show_mission(int, struct nstr_item *);
-extern int air_defense(coord, coord, natid, struct emp_qelem *,
- struct emp_qelem *);
/* move.c */
extern int check_lmines(coord, coord, double);
extern int move_ground(struct sctstr *, struct sctstr *,
extern int carrier_planes(struct shpstr *, int);
extern void pln_sel(struct nstr_item *, struct emp_qelem *,
struct sctstr *, int, int, int, int);
-extern int pln_arm(struct emp_qelem *, int, char, struct ichrstr *,
- int, int);
+extern void pln_arm(struct emp_qelem *, int, char, struct ichrstr *, int);
extern int pln_mobcost(int, struct plnstr *, int);
extern void pln_put(struct emp_qelem *);
extern void pln_put1(struct plist *);
-extern void take_plane_off_ship(struct plnstr *, struct shpstr *);
-extern void take_plane_off_land(struct plnstr *, struct lndstr *);
extern void plane_sweep(struct emp_qelem *, coord, coord);
extern int put_plane_on_land(struct plnstr *, struct lndstr *);
extern int pln_hitchance(struct plnstr *, int, int);
extern void snxtitem_group(struct nstr_item *, int, char);
extern void snxtitem_rewind(struct nstr_item *);
extern int snxtitem_list(struct nstr_item *, int, int *, int);
+extern void snxtitem_cargo(struct nstr_item *, int, int, int);
/* snxtsct.c */
extern int snxtsct(struct nstr_sect *, char *);
extern void snxtsct_area(struct nstr_sect *, struct range *);
extern void resupply_all(struct lndstr *);
extern void resupply_commod(struct lndstr *, i_type);
extern int supply_commod(int, int, int, i_type, int);
-extern int has_supply(struct lndstr *);
+extern int lnd_in_supply(struct lndstr *);
+extern int lnd_could_be_supplied(struct lndstr *);
/* takeover.c */
-extern void takeover_land(struct lndstr *, natid, int);
+extern void takeover_land(struct lndstr *, natid);
extern void takeover(struct sctstr *, natid);
-extern void takeover_ship(struct shpstr *, natid, int);
+extern void takeover_ship(struct shpstr *, natid);
extern void takeover_plane(struct plnstr *, natid);
/* trdsub.c */
/* trechk.c */
extern int wu(natid, natid, char *, ...) ATTRIBUTE((format (printf, 3, 4)));
/*
- * src/lib/update/ *.c
+ * src/lib/update/ *.c
*/
/* age.c */
+extern int age_people(int, int);
extern void age_levels(int);
/* anno.c */
extern void delete_old_announcements(void);