|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Locales.StdRoom
com.planet_ink.coffee_mud.Locales.SpacePort
public class SpacePort
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Locales.interfaces.Room |
---|
Room.VariationCode |
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemPossessor |
---|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move |
Field Summary | |
---|---|
protected double[] |
dirFromCore
|
Fields inherited from class com.planet_ink.coffee_mud.Locales.StdRoom |
---|
affectPhyStats, affects, amDestroyed, atmosphere, basePhyStats, behaviors, cachedImageName, climask, combatTurnMobIndex, contents, description, displayText, doors, exits, expirationDate, gridParent, inhabitants, lastResourceTime, me, mobility, myArea, myID, myResource, name, phyStats, rawImageName, roomRecoverMarker, scripts, skyedYet, STDCODES, tickStatus, xtraValues |
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 |
Constructor Summary | |
---|---|
SpacePort()
|
Method Summary | |
---|---|
long[] |
coordinates()
Coordinates of the place -- must be on its planet surface. |
int |
domainType()
Returns the domain-code for this room, which tells you something about its physical makeup, such as whether it is outdoor, if it's in the woods or surrounded by stone, that sort of thing. |
double[] |
getDirectionFromCore()
Returns the direction from the core of the planet to the location of this place on its surface. |
protected int |
getLocCodeNum(java.lang.String code)
|
java.lang.String |
getStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String[] |
getStatCodes()
Returns an array of the string names of those fields which are modifiable on this object at run-time by builders. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
setDirectionFromCore(double[] dir)
Sets the direction from the core of the planet to the location of this place on its surface. |
void |
setStat(java.lang.String code,
java.lang.String val)
An alternative means of setting the values of those fields on this object which are modifiable at run-time by builders. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemPossessor |
---|
addItem, moveItemTo, moveItemTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemCollection |
---|
addItem, delAllItems, delItem, eachItem, findItem, findItem, findItems, findItems, getItem, getRandomItem, isContent, items, numItems |
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, 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, 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, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, isStat |
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 |
---|
protected double[] dirFromCore
Constructor Detail |
---|
public SpacePort()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdRoom
public int domainType()
Room
domainType
in interface Room
domainType
in class StdRoom
Room.INDOORS
,
Room.DOMAIN_INDOORS_CAVE
,
Room.DOMAIN_INDOORS_DESCS
,
Room.DOMAIN_OUTDOORS_CITY
,
Room.DOMAIN_OUTDOOR_DESCS
public long[] coordinates()
LocationRoom
coordinates
in interface LocationRoom
LocationRoom.getDirectionFromCore()
public double[] getDirectionFromCore()
LocationRoom
getDirectionFromCore
in interface LocationRoom
public void setDirectionFromCore(double[] dir)
LocationRoom
setDirectionFromCore
in interface LocationRoom
dir
- direction to this place from planets core.public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
getStat
in class StdRoom
code
- the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
setStat
in class StdRoom
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
protected int getLocCodeNum(java.lang.String code)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
getStatCodes
in class StdRoom
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |