static void initCreatures() { GList *creatures = g_hash_table_get_values(creatureParsedTable); GList *next = creatures; while (NULL != next) { CreatureParsed *creatureDef = (CreatureParsed *)next->data; Creature *creature = initCreature(creatureDef); g_hash_table_insert(g_creatures, (char *)dstrview(creature->name), creature); next = g_list_next(next); } }
Creature::Creature(int x, int y) { initCreature(x, y, "Monstre", 5, 1.5); }