예제 #1
0
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);
   }
}
예제 #2
0
Creature::Creature(int x, int y)
{
    initCreature(x, y, "Monstre", 5, 1.5);
}