Whether hostile to each other, indifferent, or strangers, different groups must fight on the same side. All the way up to an Enemy Mine situation. Afterwards, they are no longer hostile and perhaps even actual friends. If they continue as enemies, they are Friendly Enemy.