File: user.h

package info (click to toggle)
conquest 8.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,984 kB
  • ctags: 3,086
  • sloc: ansic: 39,393; sh: 8,540; yacc: 446; makefile: 296; lex: 146
file content (31 lines) | stat: -rw-r--r-- 926 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* 
 * User structure(s)
 *
 * $Id: user.h,v 1.5 2003/11/02 20:53:00 jon Exp $
 *
 * Copyright 1999-2004 Jon Trulson under the ARTISTIC LICENSE. (See LICENSE).
 */

#ifndef USER_H_INCLUDED
#define USER_H_INCLUDED

#include "conqdef.h"

typedef struct {
  int live;			/* alive or not */
  int type;			/* type of user: UT_LOCAL, UT_REMOTE */
  int team;			/* user's team */
  int multiple;			/* ship count def=1, shitlist=0?, >1 = mult? */
  int stats[MAXUSTATS];		/* user's stats */
  real rating;			/* user's rating */
  int robot;			/* a robot? */
  int war[NUMPLAYERTEAMS];	/* teams you're at war with */
  int ooptions[MAXOOPTIONS];	/* operator settable options */
  char username[MAXUSERNAME];	/* user's name (login name) */
  char pw[MAXUSERNAME];	/* user's password if server login */
  char alias[MAXUSERPNAME];	/* user's pseudonym */
  time_t lastentry;		/* last entry time */
} User_t;


#endif /* USER_H_INCLUDED */