예제 #1
0
        public bool checkIfAlly(Faction faction)
        {
            if (faction == null)
                if (allyTowardsNeutrals)
                    return true;
                else
                    return false;

            for (int i = 0; i < allies.Count; i++)
                if (faction == allies[i])
                    return true;

            return false;
        }
예제 #2
0
        public bool checkIfAgressive(Faction faction)
        {
            if (faction == null)
                if (agressiveTowardsNeutrals)
                    return true;
                else
                    return false;

            for (int i = 0; i < enemys.Count; i++)
                if (faction == enemys[i])
                    return true;

            return false;
        }