Name
GoPlayer -- player related information
Args
"name" gpointer : Read / Write / Construct
"token" gpointer : Read / Write / Construct Only
"rank" gpointer : Read / Write / Construct
"strength" gdouble : Read / Write / Construct |
Description
The GoPlayer object records all information about
a single player.
Details
struct GoPlayer
struct GoPlayer {
gchar * name;
gchar * token;
gchar * rank;
double strength;
}; |
go_player_new ()
GtkObject* go_player_new (GoData *data,
const char *name,
const char *token,
const char *rank,
double strength); |
Allocate a new GoPlayer object, fill in the values,
and connect it to data. If the strength value is unknown
it should be set to -100.
go_player_read ()
GtkObject* go_player_read (GoData *data,
xmlNodePtr node); |
This is a constructor for GoPlayer objects,
which reads all data from a XML tree.
go_player_write ()
void go_player_write (GoPlayer *self,
xmlNodePtr node); |
Dump all player data into node.
Args
- "name" (gpointer : Read / Write / Construct)
- "token" (gpointer : Read / Write / Construct Only)
- "rank" (gpointer : Read / Write / Construct)
- "strength" (gdouble : Read / Write / Construct)