Class Nation

All Implemented Interfaces:
ISerializable

public class Nation extends BaseEntity<Nation> implements ISerializable
  • Constructor Details

    • Nation

      public Nation(com.google.gson.JsonObject obj, KnownMap map)
      Creates a new Nation by parsing raw data.
      Should NOT be called explicitly unless you know what you are doing!
      Parameters:
      obj - The unparsed data required to build this object.
      map - The map this nation currently resides in.
  • Method Details

    • getCapital

      public Town getCapital()
    • invitableTowns

      public Map<String,Town> invitableTowns()
    • residentList

      public List<String> residentList()
      Helper method to reduce mapping over residents for names.
      Returns:
      The names of residents in this nation.
      See Also:
      • #getResidents()