void MonsterGenerator::reset() { mon_templates->reset(); mon_templates->insert( mtype() ); mon_species->reset(); mon_species->insert( species_type() ); }
void MonsterGenerator::reset() { mon_templates->reset(); mon_templates->insert( mtype() ); mon_species->reset(); mon_species->insert( species_type() ); hallucination_monsters.clear(); }
MonsterGenerator::MonsterGenerator() : mon_templates( "monster type", "id", "alias" ) , mon_species( "species" ) { mon_templates->insert( mtype() ); mon_species->insert( species_type() ); init_phases(); init_attack(); init_defense(); init_death(); }
MonsterGenerator::MonsterGenerator() : mon_templates( new generic_factory<mtype>( "monster type" ) ) , mon_species( new generic_factory<species_type>( "species" ) ) { mon_templates->insert( mtype() ); mon_species->insert( species_type() ); //ctor init_phases(); init_attack(); init_defense(); init_death(); init_flags(); init_trigger(); }
void MonsterGenerator::reset() { mon_templates->reset(); mon_templates->insert( mtype() ); mon_species->reset(); mon_species->insert( species_type() ); hallucination_monsters.clear(); attack_map.clear(); // Hardcode attacks need to be re-added here // @todo: Move initialization from constructor to init() init_attack(); }