AI::Relation AI::relationTo(const ServerPlayer *other) const { if (self == other) return Friend; const Scenario *scenario = room->getScenario(); if (scenario) return scenario->relationTo(self, other); if (room->getMode() == "06_3v3" || room->getMode() == "06_XMode") return GetRelation3v3(self, other); return GetRelation(self, other); }
AI::Relation AI::relationTo(const ServerPlayer *other) const{ if(self == other) return Friend; const Scenario *scenario = room->getScenario(); if(scenario) return scenario->relationTo(self, other); if(room->getMode() == "06_3v3") return GetRelation3v3(self, other); else if(Config.EnableHegemony) return GetRelationHegemony(self, other); return GetRelation(self, other); }