|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Area
An Area is an abstract collection of rooms organized together under a single name in order to share attributes or give some common functionality. Areas can also include other areas in a parent-child relationship.
Nested Class Summary | |
---|---|
static class |
Area.AreaInstanceChild
Class to hold a reference to a child area instance, and the inhabitants who belong there. |
static class |
Area.CompleteRoomEnumerator
|
static class |
Area.RoomComparator
Comparator for tree sets, comparing room ids of rooms |
static class |
Area.RoomIDComparator
Comparator for tree sets, comparing room ids of rooms |
static class |
Area.RoomIDEnumerator
|
static class |
Area.State
State flag for areas. |
static class |
Area.Stats
Various area IStat constants.. |
Field Summary | |
---|---|
static int |
FLAG_INSTANCE_CHILD
State flag meaning this area is a INSTANCE child type area. |
static int |
FLAG_INSTANCE_PARENT
State flag meaning this area is a INSTANCE parent type area. |
static int |
FLAG_THIN
State flag meaning this area is a THIN type area. |
static int |
THEME_ALLTHEMES
Bitmap flag meaning that the object supports ALL themes. |
static java.lang.String[] |
THEME_BIT_NAMES
|
static int |
THEME_FANTASY
Bitmap flag meaning that the object supports magic. |
static int |
THEME_HEROIC
Bitmap flag meaning that the object supports super powers. |
static int |
THEME_INHERIT
Bitmap flag meaning that the object supports magic. |
static java.lang.String[] |
THEME_NAMES
Indexed description of the THEME_ bitmap constants in all possible combinations -- in upper/single word format |
static java.lang.String[] |
THEME_PHRASE
Indexed description of the THEME_ bitmap constants in all possible combinations. |
static java.lang.String[] |
THEME_PHRASE_EXT
Indexed extended description of the THEME_ bitmap constants in all possible combinations. |
static int |
THEME_SKILLONLYMASK
Bitmap flag meaning that the object only supports usage of above in Skills. |
static int |
THEME_TECHNOLOGY
Bitmap flag meaning that the object supports technology. |
static long |
TIME_PASSIVE_LAPSE
Amount of time of player absence before an area automatically goes from Active to passive |
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Places |
---|
ALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES |
Method Summary | |
---|---|
void |
addBlurbFlag(java.lang.String flagPlusDesc)
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
void |
addChild(Area area)
Designates the given Area object as a Child of this one. |
void |
addMetroRoom(Room R)
Designates that a given Room object belongs to one of this areas children. |
void |
addMetroRoomnumber(java.lang.String roomID)
Designates that a given roomid represents a room which belongs to one of this areas children. |
void |
addParent(Area area)
Designates the given Area object as a Parent of this one. |
void |
addProperRoom(Room R)
This method adds a new Room to this area. |
void |
addProperRoomnumber(java.lang.String roomID)
Designates that the given roomID belongs to this Area. |
void |
addSubOp(java.lang.String username)
Adds a SubOp to this area. |
boolean |
amISubOp(java.lang.String username)
Returns whether the given player name is a SubOp to this area. |
java.util.Enumeration<java.lang.String> |
areaBlurbFlags()
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
boolean |
canChild(Area area)
Returns whether the Area named MAY BE designated as a child of this Area A Child Area inherets certain behaviors and property effects from its Parents |
boolean |
canParent(Area newParent)
Returns whether the Area named MAY BE designated as a parent of this Area A Parent Area passes down certain behaviors and property effects to its children |
void |
delBlurbFlag(java.lang.String flagOnly)
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
void |
delMetroRoom(Room R)
Designates that a given Room object no longer belongs to one of this areas children. |
void |
delMetroRoomnumber(java.lang.String roomID)
Designates that a given roomid represents a room which no longer belongs to one of this areas children. |
void |
delProperRoom(Room R)
This method removes an existing Room from this area. |
void |
delProperRoomnumber(java.lang.String roomID)
Designates that the given roomID no longer belongs to this Area. |
void |
delSubOp(java.lang.String username)
Removes a SubOp to this area. |
void |
fillInAreaRoom(Room R)
This method causes a given room to have its run-time generated Skys to be re-generated. |
void |
fillInAreaRooms()
This method causes all proper rooms within this area to have their run-time generated Skys to be re-generated. |
long |
flags()
Return basic attributed flag about the area. |
java.lang.String |
getArchivePath()
Returns the coffeemud .cmare filename that will be used when the EXPORT command is used in such a way as to auto-generate filenames. |
int[] |
getAreaIStats()
Returns an integer array of statistics about this area based on a snapshot generated the first time it is called. |
Area.State |
getAreaState()
Area Flags, unlike flags, is a PURELY run-time set that changes depending upon how the engine is operating on this area or its content. |
java.lang.StringBuffer |
getAreaStats()
Returns a descriptive list of statistics about this area based on a snapshot from getAreaIStats(), which is cached after being generated. |
java.lang.String |
getAuthorID()
Returns the name of the author of this area, an arbitrary string |
java.lang.String |
getBlurbFlag(java.lang.String flag)
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
RoomnumberSet |
getCachedRoomnumbers()
Returns a RoomnumberSet for all rooms that properly belong to this area, excluding those not yet loaded. |
Area |
getChild(java.lang.String named)
Returns the named Child Area object for this Area A Child Area inherets certain behaviors and property effects from its Parents |
java.util.Enumeration<Area> |
getChildren()
An enumerator list of Area objects representing the Children Areas of this Area. |
Climate |
getClimateObj()
Returns a reference to the Climate object that represents the current and future weather for this area. |
java.util.Enumeration<Room> |
getCompleteMap()
This method is the same as getProperMap, except that it will load any Rooms that belong to the area but have not yet been loaded. |
java.lang.String |
getCurrency()
Sets the default currency for this area, which will be referenced by shopkeepers, bankers, and other mobs. |
java.util.Enumeration<Room> |
getFilledCompleteMap()
This method is the same as getFilledProperMap, except that it will load any Rooms that belong to the area but have not yet been loaded. |
java.util.Enumeration<Room> |
getFilledProperMap()
Returns an enumerator for all previously loaded rooms that properly belongs to this area, along with their skys or underwater add-ons. |
java.util.Enumeration<Room> |
getMetroMap()
Returns an enumerator for all previously loaded rooms that properly belongs to this area AND to any child areas. |
java.lang.String |
getNewRoomID(Room startRoom,
int direction)
Generates a new RoomID for a new Room in this area. |
Area |
getParent(java.lang.String named)
Returns the named Parent Area object for this Area A Parent Area passes down certain behaviors and property effects to its children |
java.util.Enumeration<Area> |
getParents()
An enumerator list of Area objects representing the Parent Areas of this Area. |
java.util.List<Area> |
getParentsRecurse()
Returns a list of all Parent Area objects to this one, recursively A Parent Area passes down certain behaviors and property effects to its children |
int |
getPlayerLevel()
Returns a fake player-level, to be used instead of median or average actual mob level, for cases where you want an area to reflect its higher level mobs over low level trash. |
java.util.Enumeration<Room> |
getProperMap()
Returns an enumerator for all previously loaded rooms that properly belongs to this area. |
RoomnumberSet |
getProperRoomnumbers()
Returns a RoomnumberSet for all rooms that properly belong to this area, including those not yet loaded. |
Room |
getRandomMetroRoom()
Returns a random room from this area, or one of its children, loading it if necessary. |
Room |
getRandomProperRoom()
Returns a random room from this area, loading it if necessary. |
Room |
getRoom(java.lang.String roomID)
Returns a room of the given roomID, if it has already been added by calling addProperRoom. |
java.lang.String |
getSubOpList()
Returns a semicolon delimited list of player Names that represent the SubOp list for this area. |
int |
getTheme()
Returns the technology level supported by this area. |
int |
getThemeCode()
Returns the technology level supported by this area. |
TimeClock |
getTimeObj()
Returns a reference to the TimeClock object that represents the calendar and date/time for this area. |
boolean |
inMyMetroArea(Area A)
Returns whether the given Area object is either THIS area, a child of this area, or a decendent. |
boolean |
isChild(Area area)
Returns whether the Area is a child of this Area A Child Area inherets certain behaviors and property effects from its Parents |
boolean |
isChild(java.lang.String named)
Returns whether the Area named is a child of this Area A Child Area inherets certain behaviors and property effects from its Parents |
boolean |
isParent(Area area)
Returns whether the Area is a Parent of this Area A Parent Area passes down certain behaviors and property effects to its children |
boolean |
isParent(java.lang.String named)
Returns whether the Area named is a Parent of this Area A Parent Area passes down certain behaviors and property effects to its children |
boolean |
isProperlyEmpty()
Returns whether this area has any proper rooms at all, even if uncached. |
boolean |
isRoom(Room R)
Returns whether the given Room object belongs to this Area, even if the Room object properly has not been loaded yet (due to the area being thin). |
int |
metroSize()
Returns a count of all cached rooms that belong to this area, or to a child area, which have been loaded. |
int |
numAllBlurbFlags()
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
int |
numberOfProperIDedRooms()
Returns a count of all cached rooms that belong to this area, excluding skys and auto-generated rooms. |
int |
numBlurbFlags()
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
int |
properSize()
Returns a count of all cached rooms that belong to this area, which have been loaded. |
void |
removeChild(Area area)
Designates the given Area object as no longer being Child of this one. |
void |
removeParent(Area area)
Designates the given Area object as no longer being Parent of this one. |
void |
setArchivePath(java.lang.String pathFile)
Sets the coffeemud .cmare filename that will be used when the EXPORT command is used in such a way as to auto-generate filenames. |
void |
setAreaState(Area.State newState)
Area Flags, unlike flags, is a PURELY run-time set that changes depending upon how the engine is operating on this area or its content. |
void |
setAuthorID(java.lang.String authorID)
Sets the name of the author of this area, an arbitrary string |
void |
setClimateObj(Climate obj)
Sets a reference to the Climate object that represents the current and future weather for this area. |
void |
setCurrency(java.lang.String currency)
Returns the default currency for this area, which will be referenced by shopkeepers, bankers, and other mobs. |
void |
setPlayerLevel(int level)
Sets a fake player-level, to be used instead of median or average actual mob level, for cases where you want an area to reflect its higher level mobs over low level trash. |
void |
setProperRoomnumbers(RoomnumberSet set)
Sets the RoomnumberSet for all rooms that properly belong to this area, including those not yet loaded. |
void |
setSubOpList(java.lang.String list)
Sets the semicolon delimited list of player Names that represent the SubOp list for this area. |
void |
setTheme(int level)
Sets the technology level supported by this area. |
void |
setTimeObj(TimeClock obj)
Sets a reference to the TimeClock object that represents the calendar and date/time for this area. |
java.util.Enumeration<java.lang.String> |
subOps()
Returns a enumeration of player Names that represent the SubOp list for this area. |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Economics |
---|
budget, devalueRate, finalBudget, finalDevalueRate, finalIgnoreMask, finalInvResetRate, finalItemPricingAdjustments, finalPrejudiceFactors, ignoreMask, invResetRate, itemPricingAdjustments, prejudiceFactors, setBudget, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactors |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Places |
---|
getAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, setAtmosphere, setClimateType |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Physical |
---|
description, displayText, name |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name, tick |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
---|
affectCharState, affectCharStats, affectPhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
---|
executeMsg, okMessage |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable |
---|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
---|
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts |
Field Detail |
---|
static final java.lang.String[] THEME_BIT_NAMES
static final int THEME_INHERIT
static final int THEME_FANTASY
static final int THEME_TECHNOLOGY
static final int THEME_HEROIC
static final int THEME_ALLTHEMES
static final int THEME_SKILLONLYMASK
static final java.lang.String[] THEME_NAMES
static final java.lang.String[] THEME_PHRASE
THEME_FANTASY
static final java.lang.String[] THEME_PHRASE_EXT
THEME_FANTASY
static final int FLAG_THIN
static final int FLAG_INSTANCE_PARENT
static final int FLAG_INSTANCE_CHILD
static final long TIME_PASSIVE_LAPSE
Method Detail |
---|
long flags()
FLAG_THIN
int getThemeCode()
THEME_FANTASY
int getTheme()
THEME_FANTASY
void setTheme(int level)
level
- the bitmap representing the tech levelTHEME_FANTASY
java.lang.String getArchivePath()
void setArchivePath(java.lang.String pathFile)
pathFile
- the name of the .cmare filename to useClimate getClimateObj()
Climate
void setClimateObj(Climate obj)
obj
- a com.planet_ink.coffee_mud.Common.interfaces.Climate objectClimate
TimeClock getTimeObj()
TimeClock
void setTimeObj(TimeClock obj)
obj
- a com.planet_ink.coffee_mud.Common.interfaces.TimeClock objectTimeClock
void setAuthorID(java.lang.String authorID)
authorID
- the author of the areajava.lang.String getAuthorID()
java.lang.String getCurrency()
void setCurrency(java.lang.String currency)
currency
- a currency name/definitionint numBlurbFlags()
int numAllBlurbFlags()
java.lang.String getBlurbFlag(java.lang.String flag)
flag
- the name of the flag to return
java.util.Enumeration<java.lang.String> areaBlurbFlags()
getBlurbFlag(String)
void addBlurbFlag(java.lang.String flagPlusDesc)
flagPlusDesc
- the flag name, space, followed by definitionvoid delBlurbFlag(java.lang.String flagOnly)
flagOnly
- the name of the flag to remove.void fillInAreaRooms()
void fillInAreaRoom(Room R)
R
- the Room object to "fill-in"Room
void addProperRoom(Room R)
R
- the Room to add.addMetroRoom(Room)
,
Room
void delProperRoom(Room R)
R
- the Room to delete.delMetroRoom(Room)
,
Room
Room getRoom(java.lang.String roomID)
roomID
- the roomID of the room to return.
Room
boolean isRoom(Room R)
R
- the Room object to check for
Room
Room getRandomProperRoom()
Room
java.util.Enumeration<Room> getProperMap()
getCompleteMap()
,
Room
java.util.Enumeration<Room> getFilledProperMap()
getProperMap()
,
Room
void addProperRoomnumber(java.lang.String roomID)
roomID
- the roomID of a room which should belong to this Area.void delProperRoomnumber(java.lang.String roomID)
roomID
- the roomID of a room which should no longer belong to this Area.java.util.Enumeration<Room> getCompleteMap()
getProperMap()
,
Room
java.util.Enumeration<Room> getFilledCompleteMap()
getFilledProperMap()
,
Room
boolean isProperlyEmpty()
RoomnumberSet getProperRoomnumbers()
RoomnumberSet
void setProperRoomnumbers(RoomnumberSet set)
set
- a com.planet_ink.coffee_mud.Common.interfaces.RoomnumberSet objectRoomnumberSet
RoomnumberSet getCachedRoomnumbers()
int numberOfProperIDedRooms()
int properSize()
java.util.Enumeration<Room> getMetroMap()
Room
void addMetroRoom(Room R)
R
- a Room object from one of this areas child areas.Room
void delMetroRoom(Room R)
R
- a Room object formerly from one of this areas child areas.Room
void addMetroRoomnumber(java.lang.String roomID)
roomID
- a roomid for a roomvoid delMetroRoomnumber(java.lang.String roomID)
roomID
- a roomid for a former roomint metroSize()
boolean inMyMetroArea(Area A)
A
- an Area object
Room getRandomMetroRoom()
Room
java.lang.String getNewRoomID(Room startRoom, int direction)
startRoom
- the room connected to the upcoming new one (or null)direction
- the direction from the startRoom the new one will go
Room
void setAreaState(Area.State newState)
newState
- the new state to put this entire area intoArea.State
Area.State getAreaState()
Area.State
void addSubOp(java.lang.String username)
username
- a players NamedelSubOp(String)
void delSubOp(java.lang.String username)
username
- a players NameaddSubOp(String)
boolean amISubOp(java.lang.String username)
username
- a players Name
addSubOp(String)
java.lang.String getSubOpList()
addSubOp(String)
void setSubOpList(java.lang.String list)
list
- a semicolon delimited list of player Names.addSubOp(String)
java.util.Enumeration<java.lang.String> subOps()
java.lang.StringBuffer getAreaStats()
getAreaIStats()
int[] getAreaIStats()
Area.Stats
int getPlayerLevel()
setPlayerLevel(int)
void setPlayerLevel(int level)
level
- the player level, or 0getPlayerLevel()
java.util.Enumeration<Area> getChildren()
Area getChild(java.lang.String named)
named
- the name of an Area
boolean isChild(Area area)
area
- an Area object
boolean isChild(java.lang.String named)
named
- the name of an Area
void addChild(Area area)
area
- an Area objectvoid removeChild(Area area)
area
- an Area objectboolean canChild(Area area)
area
- an Area to check
java.util.Enumeration<Area> getParents()
Area getParent(java.lang.String named)
named
- the name of an Area
java.util.List<Area> getParentsRecurse()
boolean isParent(Area area)
area
- an Area object
boolean isParent(java.lang.String named)
named
- the name of an Area
void addParent(Area area)
area
- an Area objectvoid removeParent(Area area)
area
- an Area objectboolean canParent(Area newParent)
newParent
- an Area to check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |