Britbot
Direction Britbot.SmartIsland.GetDirection ( Group  group) [inline]

Implements the getDirection method of the ITarget interface searches for the direction which brings the path closest to a straight line.

Parameters:
groupThe group asking for direction
Returns:
best direction

Implements Britbot.ITarget.

Definition at line 175 of file SmartIsland.cs.

        {
            //calculates the direction based on the geographical data from the game
            return Navigator.CalculateDirectionToStationeryTarget(group.FindCenter(true), group.Heading, GetLocation());
        }