Logo Search packages:      
Sourcecode: mathwar version File versions  Download package

gint get_player_bonus ( const player_object player  ) 

Return the number of bonus points that the given player scored in the latest game.

get_player_bonus (const player_object *player)

Parameters:
player The player in question.
Returns:
The number of bonus points that the player earned.

Definition at line 160 of file player.c.

References COMPUTER, and HUMAN.

{
   g_return_val_if_fail (player != NULL, 0);
   g_return_val_if_fail (player->name != NULL, 0);
   g_return_val_if_fail 
      (player->type == HUMAN || player->type == COMPUTER, 0);

   return player->bonus;
}


Generated by  Doxygen 1.6.0   Back to index