MapCity

Maps an isolated city that is not an endpoint of any roads, i.e., the city is not connected to any roads. An isolated city cannot be turned into a normal city and vice versa without being unmapped from the spatial structure first. Thus, when trying to map an isolated city to the endpoints of a road, cityAlreadyMapped error should be returned.

Parameters

  • name

Possible <output>

  • (None)

Possible <error> types

  • nameNotInDictionary
  • cityAlreadyMapped
  • cityOutOfBounds

<success> Example

   <success>
       <command name="mapCity" id="4"/>
       <parameters>
           <name value="Baltimore"/>
       </parameters>
       <output/>
   </success>