Britbot

Turns till the island becomes nutral.

Parameters:
capturer
Returns:

Definition at line 85 of file SimulatedIsland.cs.

        {
            //calculate total number of turns to capture (without partials)
            int totalCaptureTime;
            //check if conqueror is the owner
            if (this.Owner == capturer)
            {
                return 0;
            } //if the isalnd is nutral
            else if (this.Owner == Consts.NO_OWNER)
            {
                totalCaptureTime = 0;
            } //if the island is of the other team
            else
            {
                totalCaptureTime = this.TurnsBeingCaptured;
            }

            //check if we already have some capture time
            if (this.CapturingGroup.Owner == capturer)
            {
                return totalCaptureTime - this.TurnsBeingCaptured;
            }
            return totalCaptureTime;
        }