|
Britbot
|
A Class that encapsulates the default Island type and adds important methods to it. More...
Inheritance diagram for Britbot.SmartIsland:
Collaboration diagram for Britbot.SmartIsland:Public Member Functions | |
| Score | GetScore (Group origin) |
| Calculates the score of this island relative to a certain group by calculating how many potential points it will generate. | |
| Location | GetLocation () |
| Get the location of the Island. | |
| Direction | GetDirection (Group group) |
| Implements the getDirection method of the ITarget interface searches for the direction which brings the path closest to a straight line. | |
| TargetType | GetTargetType () |
| Get the type of the target. | |
| string | GetDescription () |
| Gets a string description for this Target for log purposes. | |
| bool | Equals (ITarget operandB) |
| Checks if 2 smart Islands are equal. | |
| void | TargetAssignmentEvent () |
| just interface implementation, does nothing so far | |
| void | TargetDeAssignmentEvent () |
| cana"l | |
| override int | GetHashCode () |
| int | NearbyEnemyCount (int dangerRadius=15) |
| Checks if there are enemies near said Island that will probably attack it. | |
| int | TurnsToEnemyCapture (Group myGroup) |
| Calculates the minimum amount of turns that a island will be under our control. | |
| int | islandDensity () |
| void | Update () |
| updates the distances of all the enemies approaching the isalnds | |
| double | GetMinimumSquareDistanceFromEnemy () |
| Returns the minimal distance to enemy group uses the *SORTED* EnemyDistances list. | |
| override string | ToString () |
| string | Debug () |
| bool | IsDangerousForGroup (Group g) |
| This function sais if it is ok for a given group to try and capture this isalnd considers all the other. | |
| int | RealTimeTillCapture (int conqueror) |
| This returns how many turns it would take for the conqueror team to capture the island considering everything? (the owner and if there was some capturing before) | |
| override bool | Equals (object obj) |
| Checks if 2 smart Islands are equal. | |
Static Public Member Functions | |
| static bool | IsNearNonOurIsland (Location loc, int Range) |
| static void | UpdateAll () |
| static void | DebugAll () |
| static bool | operator== (SmartIsland a, SmartIsland b) |
| Checks if 2 smart Islands are equal. | |
| static bool | operator!= (SmartIsland a, SmartIsland b) |
| Checks if 2 smart islands are different. | |
Public Attributes | |
| readonly int | Id |
| The unique ID of the island. | |
| List< KeyValuePair< EnemyGroup, bool > > | approachingEnemies |
| list of all the enemies and their distances from the island | |
| int | turnsTillColldown |
| int | coolDownCount |
Protected Member Functions | |
| bool | Equals (SmartIsland other) |
| Checks if 2 smart Islands are equal. | |
Properties | |
| static List< SmartIsland > | IslandList [get, set] |
| Queue of the last few amounts of enemy troops around this island. | |
| int | CaptureTurns [get] |
| Turns to capture the island. | |
| int | Value [get] |
| Value of the island, or how may normal island it is worth. | |
| Location | Loc [get] |
| THe location of the island. | |
| int | TeamCapturing [get] |
| The team currently capturing the island. | |
| int | TurnsBeingCaptured [get] |
| How many turns this island is being captured. | |
| int | Owner [get] |
| Who owns the island? | |
Private Member Functions | |
| SmartIsland (int encapsulate) | |
| Creates a new SmartIsland. | |
Static Private Member Functions | |
| static | SmartIsland () |
| A static constructor which initializes the static island list on the first reference to a SmartIsland. | |
Private Attributes | |
| int | _lastAssignmentTurn |
| The last turn in which this target was assigned. | |
A Class that encapsulates the default Island type and adds important methods to it.
Definition at line 13 of file SmartIsland.cs.
1.7.6.1