Every ship belongs to a faction, 0 for the monsters, rest for the players. They identify friend or foe by this integer.