Function: getMayor()
Usage: |
city.getMayor() |
Example: |
city.getMayor() |
returns hero object if there is a hero set as mayor, otherwise returns null
mayor = city.getMayor() if mayor echo "Mayor's name is "+mayor.name if !mayor echo "There is no mayor"