CityCafepublic interface CityMap extends CMLibrary
idConverter| Modifier and Type | Method | Description |
|---|---|---|
void |
addAuctionHouse(Auctioneer newOne) |
Adds the given Auctioneer to the city cache
|
void |
addBank(Banker newOne) |
Adds the given Banker to this cache
|
void |
addLibrary(Librarian newOne) |
Add a Librarian to the city cache
|
void |
addPostOffice(PostOffice newOne) |
Adds the given PostOffice object to the city cache
|
java.util.Enumeration<Auctioneer> |
auctionHouses() |
Returns an enumeration of all Auctioneer objects in the
city cache
|
java.util.Enumeration<java.lang.String> |
bankChains(Area areaOrNull) |
Returns an iterator of all bank chains, with a given
optional Area to act as a filter.
|
java.util.Enumeration<Banker> |
banks() |
Returns an enumeration of all Bankers in the cache
|
void |
delAuctionHouse(Auctioneer oneToDel) |
Deletes the given Auctioneer from the city cache
|
void |
delBank(Banker oneToDel) |
Deletes the given Banker from the cache.
|
void |
delLibrary(Librarian oneToDel) |
Delete a Librarian from the city cache.
|
void |
delPostOffice(PostOffice oneToDel) |
Removes the given PostOffice object from the city cache
|
void |
deregisterHolyPlace(java.lang.String deityName,
Places oldOne) |
De-register a particular room that was probably infused
to the given deity.
|
Auctioneer |
getAuctionHouse(java.lang.String chain,
java.lang.String areaNameOrBranch) |
Returns a cached Auctioneer of the given chain, from the given
area.
|
Banker |
getBank(java.lang.String chain,
java.lang.String areaNameOrBranch) |
Returns a cached Banker of the given chain, from the given
area.
|
Librarian |
getLibrary(java.lang.String chain,
java.lang.String areaNameOrBranch) |
Returns a cached Librarian of the given chain, from the given
area.
|
PostOffice |
getPostOffice(java.lang.String chain,
java.lang.String areaNameOrBranch) |
Returns a cached PostOffice of the given chain, from the given
area.
|
java.util.Enumeration<Places> |
holyPlaces(java.lang.String deityName) |
Enumerate the holy places for the given deity.
|
java.util.Enumeration<Librarian> |
libraries() |
Returns an enumeration of all Librarians in the cache.
|
java.util.Enumeration<java.lang.String> |
libraryChains(Area areaOrNull) |
Given an Area to act as filter, or null for no filter,
this will return an iterator of library chain names.
|
int |
numLibraries() |
Returns the number of cached Librarian objects
|
java.util.Enumeration<PostOffice> |
postOffices() |
An enumeration of all PostOffice objects in the cache
|
void |
registerHolyPlace(java.lang.String deityName,
Places newOne) |
Register a particular room as infused to the given deity.
|
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, ID, initializeClass, name, newInstanceAuctioneer getAuctionHouse(java.lang.String chain, java.lang.String areaNameOrBranch)
chain - name of the chain to return a Auctioneer ofareaNameOrBranch - name of the area to return the chain Auctioneer ingetAuctionHouse(String, String),
auctionHouses(),
addAuctionHouse(Auctioneer),
delAuctionHouse(Auctioneer)java.util.Enumeration<Auctioneer> auctionHouses()
getAuctionHouse(String, String),
auctionHouses(),
addAuctionHouse(Auctioneer),
delAuctionHouse(Auctioneer)void addAuctionHouse(Auctioneer newOne)
newOne - Auctioneer to addgetAuctionHouse(String, String),
auctionHouses(),
addAuctionHouse(Auctioneer),
delAuctionHouse(Auctioneer)void delAuctionHouse(Auctioneer oneToDel)
oneToDel - the Auctioneer to deletegetAuctionHouse(String, String),
auctionHouses(),
addAuctionHouse(Auctioneer),
delAuctionHouse(Auctioneer)PostOffice getPostOffice(java.lang.String chain, java.lang.String areaNameOrBranch)
chain - name of the postal chain to return a Banker ofareaNameOrBranch - name of the area to return the chain PostOffice ingetPostOffice(String, String),
postOffices(),
addPostOffice(PostOffice),
delPostOffice(PostOffice)java.util.Enumeration<PostOffice> postOffices()
getPostOffice(String, String),
postOffices(),
addPostOffice(PostOffice),
delPostOffice(PostOffice)void addPostOffice(PostOffice newOne)
newOne - the PostOffice object to cachegetPostOffice(String, String),
postOffices(),
addPostOffice(PostOffice),
delPostOffice(PostOffice)void delPostOffice(PostOffice oneToDel)
oneToDel - the PostOffice object to remove from the city cachegetPostOffice(String, String),
postOffices(),
addPostOffice(PostOffice),
delPostOffice(PostOffice)Banker getBank(java.lang.String chain, java.lang.String areaNameOrBranch)
chain - name of the bank chain to return a Banker ofareaNameOrBranch - name of the area to return the chain Banker inbanks(),
bankChains(Area),
addBank(Banker),
delBank(Banker)java.util.Enumeration<Banker> banks()
getBank(String, String),
bankChains(Area),
addBank(Banker),
delBank(Banker)java.util.Enumeration<java.lang.String> bankChains(Area areaOrNull)
areaOrNull - null or an Area to act as a filtergetBank(String, String),
banks(),
addBank(Banker),
delBank(Banker)void addBank(Banker newOne)
newOne - the Banker to addgetBank(String, String),
banks(),
bankChains(Area),
delBank(Banker)void delBank(Banker oneToDel)
oneToDel - the Banker to deletegetBank(String, String),
banks(),
bankChains(Area),
addBank(Banker)int numLibraries()
getLibrary(String, String),
libraries(),
libraryChains(Area),
addLibrary(Librarian),
delLibrary(Librarian)Librarian getLibrary(java.lang.String chain, java.lang.String areaNameOrBranch)
chain - name of the library chain to return a librarian ofareaNameOrBranch - name of the area to return the chain librarian innumLibraries(),
libraries(),
libraryChains(Area),
addLibrary(Librarian),
delLibrary(Librarian)java.util.Enumeration<Librarian> libraries()
numLibraries(),
getLibrary(String, String),
libraryChains(Area),
addLibrary(Librarian),
delLibrary(Librarian)java.util.Enumeration<java.lang.String> libraryChains(Area areaOrNull)
areaOrNull - null, or an Area filternumLibraries(),
getLibrary(String, String),
libraries(),
addLibrary(Librarian),
delLibrary(Librarian)void addLibrary(Librarian newOne)
newOne - the Librarian to addnumLibraries(),
getLibrary(String, String),
libraries(),
libraryChains(Area),
delLibrary(Librarian)void delLibrary(Librarian oneToDel)
oneToDel - the Librarian to addnumLibraries(),
getLibrary(String, String),
libraries(),
libraryChains(Area),
addLibrary(Librarian)void registerHolyPlace(java.lang.String deityName,
Places newOne)
deityName - the deity to registernewOne - the new holy placederegisterHolyPlace(String, Places),
holyPlaces(String)void deregisterHolyPlace(java.lang.String deityName,
Places oldOne)
deityName - the deity to de-registeroldOne - the old holy place for this deityregisterHolyPlace(String, Places),
holyPlaces(String)java.util.Enumeration<Places> holyPlaces(java.lang.String deityName)
deityName - the deity to list forregisterHolyPlace(String, Places),
deregisterHolyPlace(String, Places)