home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games (Alt) / INFESPGAMES.iso / os2 / backgam / source / world.h < prev   
Encoding:
C/C++ Source or Header  |  1992-09-14  |  1.9 KB  |  42 lines

  1. /*************************************************************
  2.  *    ______                                                 *
  3.  *   /     /\  TinyFugue was derived from a client initially *
  4.  *  /   __/  \ written by Anton Rang (Tarrant) and later     *
  5.  *  |  / /\  | modified by Leo Plotkin (Grod).  The early    *
  6.  *  |  |/    | versions of TinyFugue written by Greg Hudson  *
  7.  *  |  X__/  | (Explorer_Bob).  The current version is       *
  8.  *  \ /      / written and maintained by Ken Keys (Hawkeye), *
  9.  *   \______/  who can be reached at kkeys@ucsd.edu.         *
  10.  *                                                           *
  11.  *             No copyright 1992, no rights reserved.        *
  12.  *             Fugue is in the public domain.                *
  13.  *************************************************************/
  14.  
  15. #define WORLD_TEMP     001
  16. #define WORLD_CONN     002
  17. #define WORLD_ACTIVE   004
  18.  
  19. typedef struct World {         /* World structure */
  20.     int flags;
  21.     struct World *next;
  22.     char *name, *character, *pass, *address, *port, *mfile;
  23.     struct Sock *socket;       /* open socket, if any */
  24.     struct History history[1]; /* history and logging info */
  25.     struct Queue queue[1];     /* buffer for unprocessed lines */
  26. } World;
  27.  
  28.  
  29. extern void   FDECL(addworld,(char *args));
  30. extern World *FDECL(new_world,(char *name, char *character, char *pass,
  31.                     char *address, char *port, char *mfile));
  32. extern void   FDECL(remove_world,(char *args));
  33. extern void   FDECL(purge_world,(char *args));
  34. extern void   FDECL(write_worlds,(char *args));
  35. extern void   FDECL(list_worlds,(int full, char *pattern, TFILE *fp));
  36. extern void   FDECL(free_world,(World *w));
  37. extern void   FDECL(nuke_world,(World *w));
  38. extern World *NDECL(get_default_world);
  39. extern World *NDECL(get_world_header);
  40. extern World *FDECL(find_world,(char *name));
  41. extern void   FDECL(flush_world,(World *w));
  42.