Exemple #1
0
    public FactionData(string name, bool ai, WorldData world)
    {
        Name = name;
        AI   = ai;

        Colonies = new List <ColonyData>();
        Ships    = new List <ShipData>();

        if (ai)
        {
            AI_c = new FactionAI(this, world);
        }

        Color_ = Subs.RandomColor();
    }
Exemple #2
0
    void Start()
    {
        AIPathFinder.canMove = true;
        AIPathFinder.OnTargetReachedEvent += OnTargetReached;
        SetSelected(false);

        color = Subs.RandomColor();
        GraphicsMain.SetColor(color);

        stuck_timer        = new Timer(4000);
        stuck_timer.Active = false;

        hp   = MaxHP;
        LAPS = 0;
    }