/*************************************************************************** * God Wars Mud copyright (C) 1994, 1995, 1996 by Richard Woolcock * * * * Legend of Chrystancia copyright (C) 1999, 2000, 2001 by Matthew Little * * This mud is NOT to be copied in whole or in part, or to be run without * * the permission of Matthew Little. Nobody else has permission to * * authorise the use of this code. * ***************************************************************************/ #include <time.h> /************************************** * File: vote.h * * * * Header file for a polling system * * written by Brian Graversen. use of * * this code is allowed by anyone * **************************************/ /* * Some defining variables */ #define MAX_VOTE_OPTIONS 5 #define VOTE_MOBKILLS 1000 /* need at least 1000 mobkills to vote */ #define VOTE_HOURS 10 /* need at least 10 hours played to vote */ /* * Just to make our world easier */ typedef struct poll_data POLL_DATA; typedef struct vote_data VOTE_DATA; /* * Vote structures */ struct poll_data { POLL_DATA *next; VOTE_DATA *votes; time_t expire; char *name; char *options[MAX_VOTE_OPTIONS]; int vcount[MAX_VOTE_OPTIONS]; }; struct vote_data { VOTE_DATA *next; char *pname; char *phost; int choice; }; /* * global variables */ extern POLL_DATA * poll_list;