public HexSelector(SectorMap map, ResourceManager resourceManager, Location location, int jump) { if (map == null) throw new ArgumentNullException("map"); if (resourceManager == null) throw new ArgumentNullException("resourceManager"); if (jump < 0 || jump > 36) throw new ArgumentOutOfRangeException("jump", jump, "jump must be between 0 and 36 inclusive"); m_map = map; m_resourceManager = resourceManager; m_location = location; m_jump = jump; }
public static Point LocationToCoordinates(Location location) { return LocationToCoordinates(location.SectorLocation, location.HexLocation); }