Main Page   File List   File Members   Related Pages  

frdi_game.c File Reference

methods relating to specific games More...

#include "frdi.h"

Functions

char * frdiGameParseGameId (frdi_app *self, frdi_message *message)
frdi_list * frdiGameParseGameIdParts (frdi_app *self, char *game_id)
char * frdiGameParseGameMessage (frdi_app *self, frdi_message *message)
frdi_list * frdiGameRangeToList (frdi_app *self, char *range)
char * frdiGameListToRange (frdi_app *self, frdi_list *user_ids)


Detailed Description

methods relating to specific games

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:

Function Documentation

char* frdiGameParseGameId frdi_app *    self,
frdi_message *    message
 

return <gamestr> from G <gamestr> | <remainder>

frdi_list* frdiGameParseGameIdParts frdi_app *    self,
char *    game_id
 

return ( <server_id>, <host_id>, <straight_game_id ) from <complex_game_id> (or just server,host from link_id)

char* frdiGameParseGameMessage frdi_app *    self,
frdi_message *    message
 

return <remainder> from G <gamestr> | <remainder>

frdi_list* frdiGameRangeToList frdi_app *    self,
char *    range
 

convert a list of string user_id from a string range "1,2,4-7"

char* frdiGameListToRange frdi_app *    self,
frdi_list *    user_ids
 

convert a list of string user_id to a string range "1,2,4-7" (assumes the list is in increasing numerical order)


Generated on Wed Aug 18 13:23:57 2004 for Project Fairdice by doxygen1.2.18