|
Britbot
|
This class provides various extension methods for the IPirateGame interface. More...
Static Public Member Functions | |
| static T[] | Flatten< T > (this T[][] jaggedAray) |
| Smashes a two dimensional array to a flat one. | |
| static int | Distance (this IPirateGame game, Location loc, SmartIsland isle) |
| static double | EuclidianDistanceSquared (this IPirateGame game, Location loc1, Location loc2) |
| extention method calculating the square of the euclidian distance between two locations | |
| static bool | IsReallyInRange (this IPirateGame game, Location loc1, Location loc2) |
| replacement for the function provided since it doesn't account for pirates capturing | |
| static bool | IsPassableEnough (this IPirateGame game, Location loc, Group group) |
| This function checks if it is possible for a given group to be in certain location without pirates getting in enemy zone. | |
| static bool | IsInMap (this IPirateGame game, Location testLocation) |
| static bool | IsActuallyPassable (this Location loc) |
| Tests if location is actually passable. | |
| static Location | Subtract (this Location loc1, Location loc2) |
| Subtracts a location from the location calling this method. | |
| static Location | AdvancePivot (this Location pivot) |
| Moves a location closer to the center of the map. | |
| static void | AddRange< TSource > (this ObservableCollection< TSource > source, IEnumerable< TSource > items) |
| static void | RemoveAll< T > (this ObservableCollection< T > collection, Func< T, bool > condition) |
This class provides various extension methods for the IPirateGame interface.
Definition at line 15 of file Extentions.cs.
1.7.6.1