~collinp/paradise-netrek/3.1p0

« back to all changes in this revision

Viewing changes to src/include/robot_newbie.h

  • Committer: Collin Pruitt
  • Date: 2009-05-22 04:40:09 UTC
  • Revision ID: collinp111@gmail.com-20090522044009-gw30zywb9oaae4nr
Initial upload - just the source release of 3.1p0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * include/robot_newbie.h
 
3
 *
 
4
 * This is the header file for robot/robot_newbie.c
 
5
 *
 
6
 */
 
7
 
 
8
 
 
9
#ifndef ROBOT_NEWBIE_H
 
10
#define ROBOT_NEWBIE_H
 
11
 
 
12
#include "robot_functions.h"
 
13
#include "defs.h"
 
14
 
 
15
 
 
16
/* This is RobotServ's heartbeat - used by checkmess() */
 
17
static int ticks = 0;
 
18
 
 
19
/* Here are some names */
 
20
char* mastername = "RobotServ";
 
21
static char* team_s[4] = { "Federation", "Romulan", "Klingon", "Orion" };
 
22
 
 
23
#define NUMADJ 12
 
24
static char* adj_s[NUMADJ] = {
 
25
   "VICIOUS", "RUTHLESS", "IRONFISTED", "RELENTLESS",
 
26
   "MERCILESS", "UNFLINCHING", "FEARLESS", "BLOODTHIRSTY",
 
27
   "FURIOUS", "DESPERATE", "FRENZIED", "RABID"
 
28
};
 
29
 
 
30
#define NUMNAMES 20
 
31
static char* names[NUMNAMES] = {
 
32
   "Annihilator", "Banisher", "Blaster",
 
33
   "Demolisher", "Destroyer", "Eliminator",
 
34
   "Eradicator", "Exiler", "Obliterator",
 
35
   "Razer", "Demoralizer", "Smasher",
 
36
   "Shredder", "Vanquisher", "Wrecker",
 
37
   "Ravager", "Despoiler", "Abolisher",
 
38
   "Emasculator", "Decimator"
 
39
};
 
40
 
 
41
 
 
42
/* System dependend setups */
 
43
#define MIN_NUM_PLAYERS (MAXPLAYER - 1) /* How many players to maintain. */
 
44
#define OROBOT          ROBODIR("/robot")
 
45
#define PORT            2592
 
46
#define RCMD            ROBOT
 
47
#define REMOTEHOST      "localhost"
 
48
#define TREKSERVER      "localhost"
 
49
 
 
50
 
 
51
/* Functions */
 
52
#define HOWOFTEN 1                       /*Robot moves every HOWOFTEN cycles*/
 
53
#define PERSEC (1000000/UPDATE/HOWOFTEN) /* # of robo calls per second*/
 
54
#define ROBOCHECK (10*PERSEC)            /* start or stop a robot */
 
55
#define SENDINFO  (120*PERSEC)           /* send info to all */
 
56
 
 
57
/*
 
58
 * Strange #defines from Vanilla needed to make RobotServ work -- they should
 
59
 * be replaced with the Paradise equivalent when there is time
 
60
 */
 
61
#define MZERO(b1,l)     bzero(b1,l)
 
62
#define WAIT3(x,y,z)    waitpid(-1, x, y )
 
63
 
 
64
#endif  /* #ifndef ROBOT_NEWBIE_H */
 
65
 
 
66
 
 
67
/* end include/robot_newbie.h */