/* pretdefs.h

   This file contains many of the defines needed for Newbie Server
   and not for anything else.

*/
#ifndef _h_pretdefs
#define _h_pretdefs


#include "defs.h"

/* System dependend setups */

#ifdef CHECK_ENV
#define ROBODIR(RFILE) (strdup(strcat(strcpy(robofile, Robodir), RFILE)))
#else
#define ROBODIR(RFILE) (LIBDIR "/" N_ROBODIR RFILE)
#endif
#ifdef CHECK_ENV
#define ROBOCONFDIR(RFILE) (strdup(strcat(strcpy(robofile, Robodir), RFILE)))
#else
#define ROBOCONFDIR(RFILE) (SYSCONFDIR "/" N_ROBODIR RFILE)
#endif

#define RCMD            ""
#define OROBOT          ROBODIR("/robot")
#define NICE            ""
#define REMOTEHOST      ""
#define LOGFILE         ROBODIR("")
#define COMFILE         ROBOCONFDIR("/og")
#define DOGFILE         ROBOCONFDIR("/dog")
#define BASEFILE        ROBOCONFDIR("/base")
#define DEFFILE         ROBOCONFDIR("/df")



/* Newbie server specific additions */

#define MIN_NUM_PLAYERS	16 /* How many players to maintain. */
#define MAX_HUMANS 8 /* Max number of humans to let in. */

#define PORT "2592"

#define HOWOFTEN 1                       /*Robot moves every HOWOFTEN cycles*/
#define PERSEC (1000000/UPDATE/HOWOFTEN) /* # of robo calls per second*/

#define ROBOCHECK (1*PERSEC)		/* start or stop a robot */
#define ROBOEXITWAIT (3*ROBOCHECK)  /* wait between exiting bots so that
                                       multiple bots don't exit */
#define SENDINFO  (600*PERSEC)		/* send info to all */

#define QUPLAY(A) (queues[A].max_slots - queues[A].free_slots)

#define PT_ROBOTS 7
#define PT_MAX_WITH_ROBOTS 8

#endif /* _h_pretdefs */


