Esempio n. 1
0
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);
}
Esempio n. 2
0
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);
}