Back to index

gcompris  8.2.2
Functions
py-mod-bonus.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void python_gcompris_bonus_module_init (void)

Function Documentation

Definition at line 55 of file py-mod-bonus.c.

{
  PyObject* module;
  module = Py_InitModule("_gcompris_bonus", PythonGcomprisBonusModule);

  /* Misc constants */
  PyModule_AddIntConstant(module, "TIME_CLICK_TO", TIME_CLICK_TO_BONUS );

  /* BonusList constants */
  PyModule_AddIntConstant(module, "RANDOM", BONUS_RANDOM );
  PyModule_AddIntConstant(module, "SMILEY", BONUS_SMILEY );
  PyModule_AddIntConstant(module, "FLOWER", BONUS_FLOWER );
  PyModule_AddIntConstant(module, "TUX",    BONUS_TUX );
  PyModule_AddIntConstant(module, "GNU",    BONUS_GNU );

  /* BonusFinishedList constants */
  PyModule_AddIntConstant(module, "FINISHED_RANDOM", BOARD_FINISHED_RANDOM );
  PyModule_AddIntConstant(module, "FINISHED_TUXPLANE", BOARD_FINISHED_TUXPLANE );
  PyModule_AddIntConstant(module, "FINISHED_TUXLOCO", BOARD_FINISHED_TUXLOCO );
  PyModule_AddIntConstant(module, "FINISHED_TOOMANYERRORS", BOARD_FINISHED_TOOMANYERRORS );

  /* BonusStatusList constants */
  PyModule_AddIntConstant(module, "LOOSE", BOARD_LOOSE );
  PyModule_AddIntConstant(module, "WIN",   BOARD_WIN );
  PyModule_AddIntConstant(module, "DRAW",  BOARD_DRAW );
}

Here is the caller graph for this function: