void ultra_sound_init(){ init_periph_clk(); init_echo(); init_trigger(); ultrasoundTimers=xTimerCreate("ultrasound",(30 ), pdTRUE, ( void * ) 1, UltrasoundPolling ); xTimerStart( ultrasoundTimers, 0 ); }
MonsterGenerator::MonsterGenerator() { mon_templates["mon_null"] = new mtype(); mon_species["spec_null"] = new species_type(); //ctor init_phases(); init_attack(); init_death(); init_flags(); init_trigger(); init_sizes(); }
MonsterGenerator::MonsterGenerator() { mon_templates[mtype_id::NULL_ID] = new mtype(); mon_species[species_id::NULL_ID] = new species_type(); //ctor init_phases(); init_attack(); init_defense(); init_death(); init_flags(); init_trigger(); }
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(); init_flags(); init_trigger(); }
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(); }