Beispiel #1
0
void World::RemoveAircraft( int identifier )
{
	Aircraft* aircraft = GetAircraft( identifier );
	if ( aircraft )
	{
		aircraft->Destroy();
		pImpl->mPlayerAircrafts.erase( std::find( pImpl->mPlayerAircrafts.begin(), pImpl->mPlayerAircrafts.end(), aircraft ) );
	}
}
Beispiel #2
0
void
World::removeAircraft( int identifier ) {
    Aircraft* aircraft = getAircraft( identifier );
    if ( aircraft ) {
        aircraft->Destroy();
        mPlayerAircrafts.erase( std::find(
            mPlayerAircrafts.begin(),
            mPlayerAircrafts.end(),
            aircraft
        ));
    }
}