The karbonite at the given location. LocationOffMap - the location is off the map. LocationNotVisible - the location is outside the vision range.
(&self, location: MapLocation)
| 517 | /// * LocationOffMap - the location is off the map. |
| 518 | /// * LocationNotVisible - the location is outside the vision range. |
| 519 | pub fn karbonite_at(&self, location: MapLocation) -> Result<u32, GameError> { |
| 520 | self.ok_if_can_sense_location(location)?; |
| 521 | Ok(self.my_planet().karbonite[location.y as usize][location.x as usize]) |
| 522 | } |
| 523 | |
| 524 | /// Returns an array of all locations within a certain radius squared of |
| 525 | /// this location that are on the map. |
no test coverage detected