Affectable
, Behavable
, java.lang.Cloneable
, CMObject
, java.lang.Comparable<CMObject>
, Contingent
, Economics
, Environmental
, Expireable
, Modifiable
, MsgListener
, Physical
, PhysicalAgent
, Places
, StatsAffecting
, Tickable
AutoGenArea
, SubArea
Moon
, Planet
, StdArea
, StdAutoGenInstance
, StdBoardableShip
, StdGridArea
, StdPlanet
, StdSpaceShip
, StdThinArea
, StdThinGridArea
, StdThinInstance
, StdThinPlanet
, StdTimeZone
, SubThinInstance
public interface Area extends Economics, PhysicalAgent, Places
Modifier and Type | Interface | Description |
---|---|---|
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..
|
Modifier and Type | Field | Description |
---|---|---|
static long |
DEFAULT_TIME_PASSIVE_LAPSE |
Amount of time of player absence before an area automatically goes from Active to passive
|
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.
|
idConverter
ALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_VOID, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES, placeComparator
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Modifier and Type | Method | Description |
---|---|---|
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.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 |
getPiety(java.lang.String deityName) |
Returns the number of registered followers of the given
deity are in the given area name.
|
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 |
isChildRecurse(java.lang.String named) |
Returns whether the Area named is a Child of this Area,
or child of a child of this area, recursively.
|
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 |
isParentRecurse(java.lang.String named) |
Returns whether the Area named is a Parent of this Area,
or parent of a parent of this area, recursively.
|
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).
|
boolean |
isRoomCached(java.lang.String roomID) |
Returns whether the given room id object belongs to this Area, and has been
loaded into the memory cache.
|
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 |
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.
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
copyOf, ID, initializeClass, newInstance
amDestroyed, destroy, isSavable, setSavable
getFinalBudget, getFinalCurrency, getFinalDevalueRate, getFinalIgnoreMask, getFinalInvResetRate, getFinalItemPricingAdjustments, getFinalPrejudiceFactors, getRawBbudget, getRawCurrency, getRawDevalueRate, getRawIgnoreMask, getRawInvResetRate, getRawItemPricingAdjustments, getRawPrejudiceFactors, setBudget, setCurrency, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactors
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, text
expirationDate, setExpirationDate
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
executeMsg, okMessage
description, displayText, genericName, name
getAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, setAtmosphere, setClimateType
affectCharState, affectCharStats, affectPhyStats
getTickStatus, name, tick
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 DEFAULT_TIME_PASSIVE_LAPSE
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()
int numBlurbFlags()
int numAllBlurbFlags()
java.lang.String getBlurbFlag(java.lang.String flag)
flag
- the name of the flag to returnjava.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 forRoom
boolean isRoomCached(java.lang.String roomID)
roomID
- the Room id to check forRoom
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 objectRoom 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 goRoom
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 NameaddSubOp(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 getPiety(java.lang.String deityName)
deityName
- the deity to get the piety ofint 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 Areaboolean isChild(Area area)
area
- an Area objectboolean isChild(java.lang.String named)
named
- the name of an Areaboolean isChildRecurse(java.lang.String named)
named
- the name of an Areavoid addChild(Area area)
area
- an Area objectvoid removeChild(Area area)
area
- an Area objectboolean canChild(Area area)
area
- an Area to checkjava.util.Enumeration<Area> getParents()
Area getParent(java.lang.String named)
named
- the name of an Areajava.util.List<Area> getParentsRecurse()
boolean isParent(Area area)
area
- an Area objectboolean isParent(java.lang.String named)
named
- the name of an Areaboolean isParentRecurse(java.lang.String named)
named
- the name of an Areavoid addParent(Area area)
area
- an Area objectvoid removeParent(Area area)
area
- an Area objectboolean canParent(Area newParent)
newParent
- an Area to check