|
|||||||||
| 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.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
|
| Field Summary | |
|---|---|
static int |
ALL_CLIMATE_MASK
Bitmap climate flag meaning that the area has all weather modifiers. |
static int |
AREASTAT_AVGALIGN
Index into area IStats for avg alignment. |
static int |
AREASTAT_AVGLEVEL
Index into area IStats for avg level. |
static java.lang.String[] |
AREASTAT_DESCS
Descriptions of the various area IStat constants.. |
static int |
AREASTAT_INDOORROOMS
Index into area IStats for number of these constants. |
static int |
AREASTAT_INTLEVEL
Index into area IStats for total intelligent levels. |
static int |
AREASTAT_MAXLEVEL
Index into area IStats for max level. |
static int |
AREASTAT_MEDALIGN
Index into area IStats for median alignment. |
static int |
AREASTAT_MEDLEVEL
Index into area IStats for median level. |
static int |
AREASTAT_MINLEVEL
Index into area IStats for min level. |
static int |
AREASTAT_NUMBER
Index into area IStats for number of these constants. |
static int |
AREASTAT_POPULATION
Index into area IStats for population. |
static int |
AREASTAT_TOTLEVEL
Index into area IStats for total levels. |
static int |
AREASTAT_VISITABLEROOMS
Index into area IStats for number numbered rooms. |
static int |
CLIMASK_COLD
Bitmap climate flag meaning that the area has cold weather. |
static int |
CLIMASK_DRY
Bitmap climate flag meaning that the area has dry weather. |
static int |
CLIMASK_HOT
Bitmap climate flag meaning that the area has hot weather. |
static int |
CLIMASK_NORMAL
Bitmap climate flag meaning that the area has normal weather. |
static int |
CLIMASK_WET
Bitmap climate flag meaning that the area has wet weather. |
static java.lang.String[] |
CLIMATE_DESCS
Indexed description of the CLIMASK_ bitmap constants in all possible combinations. |
static int |
CLIMATE_WINDY
Bitmap climate flag meaning that the area has windy weather. |
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 |
NUM_CLIMATES
Number of CLIMASK_ constants. |
static int |
STATE_ACTIVE
State flag for area meaning Area is active. |
static int |
STATE_FROZEN
State flag for area meaning Area is frozen. |
static int |
STATE_PASSIVE
State flag for area meaning Area is passive. |
static int |
STATE_STOPPED
State flag for area meaning Area is dead. |
static java.lang.String[] |
THEME_DESCS
|
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 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 |
| 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 |
addChildToLoad(java.lang.String str)
Designates that the area named by the given String will be a Child Area of this area. |
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 |
addParentToLoad(java.lang.String str)
Designates that the area named by the given String will be a Parent Area of this area. |
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 |
int |
climateType()
Returns a bitmap of climate flags for this area which will be used to influence the weather for the area in addition to season and other factors. |
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. |
int |
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. |
java.lang.String |
getChildrenList()
Returns a semicolon delimited list of Area names 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> |
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.lang.String |
getParentsList()
Returns a semicolon delimited list of Area names representing the Parent Areas of this Area. |
java.util.List<Area> |
getParentsRecurse()
Returns a Vector of all Parent Area objects to this one, recursively A Parent Area passes down certain behaviors and property effects to its children |
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 |
getTechLevel()
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. |
void |
initializeAreaLink()
Initialize Area Links is called after an area is loaded from disk to resolve any hard, children or parent links, or perform other related area initialization. |
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 |
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(int 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 |
setClimateType(int newClimateType)
Returns a bitmap of climate flags for this area which will be used to influence the weather for the area in addition to season and other factors. |
void |
setCurrency(java.lang.String currency)
Returns the default currency for this area, which will be referenced by shopkeepers, bankers, and other mobs. |
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 |
setTechLevel(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.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, 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, delEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, behaviors, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts |
| Field Detail |
|---|
static final java.lang.String[] THEME_DESCS
static final int THEME_FANTASY
static final int THEME_TECHNOLOGY
static final int THEME_HEROIC
static final int THEME_SKILLONLYMASK
static final java.lang.String[] THEME_PHRASE
THEME_FANTASYstatic final java.lang.String[] THEME_PHRASE_EXT
THEME_FANTASYstatic final int CLIMASK_NORMAL
static final int CLIMASK_WET
static final int CLIMASK_COLD
static final int CLIMATE_WINDY
static final int CLIMASK_HOT
static final int CLIMASK_DRY
static final java.lang.String[] CLIMATE_DESCS
CLIMASK_NORMALstatic final int NUM_CLIMATES
static final int ALL_CLIMATE_MASK
static final int FLAG_THIN
static final int FLAG_INSTANCE_PARENT
static final int FLAG_INSTANCE_CHILD
static final int AREASTAT_POPULATION
static final int AREASTAT_MINLEVEL
static final int AREASTAT_MAXLEVEL
static final int AREASTAT_AVGLEVEL
static final int AREASTAT_MEDLEVEL
static final int AREASTAT_AVGALIGN
static final int AREASTAT_MEDALIGN
static final int AREASTAT_TOTLEVEL
static final int AREASTAT_INTLEVEL
static final int AREASTAT_VISITABLEROOMS
static final int AREASTAT_INDOORROOMS
static final int AREASTAT_NUMBER
static final java.lang.String[] AREASTAT_DESCS
static final int STATE_ACTIVE
static final int STATE_PASSIVE
static final int STATE_FROZEN
static final int STATE_STOPPED
static final long TIME_PASSIVE_LAPSE
| Method Detail |
|---|
long flags()
FLAG_THINint getTechLevel()
THEME_FANTASYvoid setTechLevel(int level)
level - the bitmap representing the tech levelTHEME_FANTASYjava.lang.String getArchivePath()
void setArchivePath(java.lang.String pathFile)
pathFile - the name of the .cmare filename to useClimate getClimateObj()
Climatevoid setClimateObj(Climate obj)
obj - a com.planet_ink.coffee_mud.Common.interfaces.Climate objectClimateTimeClock getTimeObj()
TimeClockvoid setTimeObj(TimeClock obj)
obj - a com.planet_ink.coffee_mud.Common.interfaces.TimeClock objectTimeClockint climateType()
CLIMASK_COLDvoid setClimateType(int newClimateType)
newClimateType - a CLIMASK bitmapCLIMASK_COLDvoid 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"Roomvoid addProperRoom(Room R)
R - the Room to add.addMetroRoom(Room),
Roomvoid delProperRoom(Room R)
R - the Room to delete.delMetroRoom(Room),
RoomRoom getRoom(java.lang.String roomID)
roomID - the roomID of the room to return.
Roomboolean isRoom(Room R)
R - the Room object to check for
RoomRoom getRandomProperRoom()
Roomjava.util.Enumeration<Room> getProperMap()
getCompleteMap(),
Roomjava.util.Enumeration<Room> getFilledProperMap()
getProperMap(),
Roomvoid 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(),
RoomRoomnumberSet getProperRoomnumbers()
RoomnumberSetvoid setProperRoomnumbers(RoomnumberSet set)
set - a com.planet_ink.coffee_mud.Common.interfaces.RoomnumberSet objectRoomnumberSetRoomnumberSet getCachedRoomnumbers()
int numberOfProperIDedRooms()
int properSize()
java.util.Enumeration<Room> getMetroMap()
Roomvoid addMetroRoom(Room R)
R - a Room object from one of this areas child areas.Roomvoid delMetroRoom(Room R)
R - a Room object formerly from one of this areas child areas.Roomvoid 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
Roomvoid setAreaState(int newState)
newState - STATE_ACTIVEint getAreaState()
STATE_ACTIVEvoid 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()
void initializeAreaLink()
java.lang.StringBuffer getAreaStats()
getAreaIStats()int[] getAreaIStats()
AREASTAT_AVGALIGNvoid addChildToLoad(java.lang.String str)
str - the name of an Areavoid addParentToLoad(java.lang.String str)
str - the name of an Areajava.util.Enumeration<Area> getChildren()
java.lang.String getChildrenList()
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()
java.lang.String getParentsList()
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 | ||||||||