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

void destroy_game_engine ( game_engine *  game  ) 

Destroy the game engine.

Stop all timers, free any memory used by the engine.

Parameters:
game A pointer to the game instance.
Returns:
Nothing.

Definition at line 672 of file game_engine.c.

{
   destroy_player (game->player1);
   destroy_player (game->player2);

   if (game->timer_is_active)
      {
      gtk_timeout_remove (game->cur_timer);
      }

   g_free (game);
}


Generated by  Doxygen 1.6.0   Back to index