X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/ab4f4ec0b2268c2e0c31350062f6a6010fb05d9c..1af35752f2d368fd53598eb57dc837076e862b15:/gameserv/extern.h diff --git a/gameserv/extern.h b/gameserv/extern.h index 5694201..891fa08 100644 --- a/gameserv/extern.h +++ b/gameserv/extern.h @@ -9,6 +9,25 @@ #include #include "player.h" #include "list.h" +#include "config.h" + +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif + + +// The timestamp from load time to be compared against the current midnight time. +E long timestamp; +E void save_timestamp(); +E void load_timestamp(); +E long int midnight(long int offset = 8); // The socket E int sock; @@ -27,6 +46,9 @@ E char *remoteserver; E char *remoteport; E char *remotepass; E char *playerdata; +E char *adminpass; +E char *VERSION; +E char *PACKAGE; E List clients; E List players; @@ -51,15 +73,25 @@ E void forest(char *source, char *buf); /** functions.cpp **/ -E bool is_fighting(char *u); -E bool isnt_fighting(char *u); E bool is_playing(char *u); -E bool has_started(char *u); +E bool is_playing(aClient *user); + E bool is_fighting(char *u); -E bool isnt_fighting(char *u); +E bool is_fighting(aClient *user); + E bool player_fight(char *u); +E bool player_fight(aClient *user); + E bool master_fight(char *u); +E bool master_fight(aClient *user); + +E bool is_alive(char *u); +E bool is_alive(aClient *user); + +#ifndef HAVE_STRTOK E char *strtok(char *str, const char *delim); +#endif + E char *spaces(int len, char *seperator); E void display_monster(char *u); E void display_players(char *u); @@ -75,11 +107,12 @@ E void delete_monsters(); E void delete_masters(); E Monster *getNewMonster(Monster *m); E void deleteMonster(Monster *m); -E void refresh(aClient *ni); +E void refresh(Player *p); E void refreshall(); E void reset(aClient *ni); E void do_list(char *u); +E void do_refresh(char *u); E void do_register(char *u); E void do_identify(char *u); E void do_play(char *u);