void InspectorProfilerAgent::clearFrontend()
{
    m_frontend = 0;
    ErrorString error;
    clearProfiles(&error);
    disable(&error);
}
void UnitProfileInterface::loadUnitProfiles( void )
{
    clearProfiles();
    UnitProfile * p;
    
    p = new UnitProfile();
    read_vehicle_profile("Manta", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);
    
    p = new UnitProfile();
    read_vehicle_profile("Panther1", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);

    p = new UnitProfile();
    read_vehicle_profile("Titan", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);

    p = new UnitProfile();
    read_vehicle_profile("Stinger", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);
    
    p = new UnitProfile();
    read_vehicle_profile("Bobcat", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);
    
    p = new UnitProfile();
    read_vehicle_profile("Bear", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);

    p = new UnitProfile();
    read_vehicle_profile("Archer", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);

    p = new UnitProfile();
    read_vehicle_profile("Wolf", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);
    
    p = new UnitProfile();
    read_vehicle_profile("Drake", p);
    p->unit_type = profiles.size();
    profiles.push_back(p);

    p = new UnitProfile();
    read_vehicle_profile("SPanzer", p); // should be scout or humvee?
    p->unit_type = profiles.size();
    profiles.push_back(p);
}
Exemplo n.º 3
0
int profileBag::clearTriggerProfiles() {
  return clearProfiles(profileBag::TriggerProfile);
}