Commit 26ec16cf authored by Bruno Coudoin's avatar Bruno Coudoin

new bonus from Mathieu Ignacio. Released under GPL.

	* gcompris/bonus/lion_good.png: new bonus from Mathieu Ignacio. Released under GPL.
	* gcompris/bonus/lion_bad.png:

svn path=/trunk/; revision=2522
parent 7a2584ed
2007-03-18 Bruno coudoin <bruno.coudoin@free.fr>
* gcompris/bonus/lion_good.png: new bonus from Mathieu Ignacio. Released under GPL.
* gcompris/bonus/lion_bad.png:
* docs/C/python.xml:
* src/boards/memory.c: (player_win):
* src/boards/py-mod-bonus.c: (python_gcompris_bonus_module_init):
* src/gcompris/bonus.c: (gc_bonus_display):
* src/gcompris/bonus.h:
2007-03-18 Bruno coudoin <bruno.coudoin@free.fr>
* boards/imageid.xml.in: reverted stupid change in r2503, the boarddir needs to be set
......
......@@ -621,6 +621,8 @@ attribute is readeable and/or writable.</para>
<entry>BONUS_TUX</entry></row>
<row><entry>gcompris.bonus.GNU</entry>
<entry>BONUS_TUX</entry></row>
<row><entry>gcompris.bonus.LION</entry>
<entry>BONUS_LION</entry></row>
</tbody>
</tgroup>
</informaltable>
......
......@@ -1387,7 +1387,7 @@ static void player_win()
gc_bonus_end_display(GC_BOARD_FINISHED_RANDOM);
return;
}
gc_bonus_display((tux_pairs <= player_pairs), GC_BONUS_RANDOM);
gc_bonus_display((tux_pairs <= player_pairs), GC_BONUS_LION);
}
......
......@@ -67,6 +67,7 @@ void python_gcompris_bonus_module_init(void)
PyModule_AddIntConstant(module, "FLOWER", GC_BONUS_FLOWER );
PyModule_AddIntConstant(module, "TUX", GC_BONUS_TUX );
PyModule_AddIntConstant(module, "GNU", GC_BONUS_GNU );
PyModule_AddIntConstant(module, "GNU", GC_BONUS_LION );
/* BonusFinishedList constants */
PyModule_AddIntConstant(module, "FINISHED_RANDOM", GC_BOARD_FINISHED_RANDOM );
......
......@@ -255,12 +255,12 @@ gc_bonus_display(GCBonusStatusList gamewon, GCBonusList bonus_id)
}
/* First pause the board */
g_warning("Pausinng board ...");
g_warning("Pausing board ...");
gc_board_pause(TRUE);
g_warning("Pausinng board ...ok");
g_warning("Pausing board ...ok");
if(bonus_id==GC_BONUS_RANDOM)
bonus_id = RAND(1, GC_BONUS_LAST-2);
bonus_id = RAND(1, GC_BONUS_LAST);
switch(bonus_id) {
case GC_BONUS_SMILEY :
......@@ -275,6 +275,9 @@ gc_bonus_display(GCBonusStatusList gamewon, GCBonusList bonus_id)
case GC_BONUS_GNU :
bonus_image("gnu",gamewon);
break;
case GC_BONUS_LION :
bonus_image("lion",gamewon);
break;
default :
bonus_image("smiley",gamewon);
break;
......
......@@ -36,6 +36,7 @@ typedef enum
GC_BONUS_FLOWER,
GC_BONUS_TUX,
GC_BONUS_GNU,
GC_BONUS_LION,
GC_BONUS_LAST
} GCBonusList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment