|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Items.Basic.StdItem
com.planet_ink.coffee_mud.Items.Basic.StdTitle
public class StdTitle
| Field Summary |
|---|
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
|---|
affects, baseEnvStats, baseGoldValue, behaviors, CODES, databaseID, description, destroyed, displayText, dispossessionTime, envStats, imageName, material, miscText, myContainer, myUses, myWornCode, name, owner, properWornBitmap, riding, scripts, secretIdentity, tickStatus, wornLogicalAnd, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
|---|
IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_CODES, WORN_DEPENDENCYGRID, WORN_DESCS, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_ORDER, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WEIGHT_POINTS, WORN_WEIGHTS, WORN_WIELD, WORNREQ_ANY, WORNREQ_UNWORNONLY, WORNREQ_WORNONLY |
| Constructor Summary | |
|---|---|
StdTitle()
|
|
| Method Summary | |
|---|---|
int |
backTaxes()
If back taxes is owned on this property, this is how the value is retreived. |
int |
baseGoldValue()
The user/builder-entered value of the item, represented in base CoffeeMud currency. |
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
LandTitle |
fetchALandTitle()
|
java.util.Vector |
getPropertyRooms()
The complete set of room objects represented by this title |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.String |
landOwner()
Get the owner of the property, usually a clan name or a player name. |
int |
landPrice()
The value of the property in base currency values |
java.lang.String |
landPropertyID()
Get the roomID or the Area name of the property for sale |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
void |
recoverEnvStats()
This method copies the baseEnvStats() object into the envStats() object, then makes repeated calls to all surrounding objects with affectEnvStats(Environmental,EnvStats) method. |
boolean |
rentalProperty()
Whether this property is a rental. |
void |
setBackTaxes(int amount)
If back taxes is owned on this property, this is how the value is set. |
void |
setBaseGoldValue(int newValue)
|
void |
setLandOwner(java.lang.String owner)
Set the owner of the property, usually a clan name or a player name. |
void |
setLandPrice(int price)
set the value of the property in base currency values |
void |
setLandPropertyID(java.lang.String landID)
Set the roomID or the Area name of the property for sale |
void |
setRentalProperty(boolean truefalse)
Sets whether this property is a rental. |
void |
updateLot(java.util.Vector optPlayerList)
Checks for changes in the content or condition of the rooms represented by this title and saves the changes to the database, if necessary. |
void |
updateTitle()
Simply resaves the rooms represented by this title to reflect change in ownership or price. |
void |
updateTitleName()
|
int |
value()
The default value of the item, represented in the base CoffeeMud currency. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, destroy, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, numEffects, rawImage, sameAs, savable, setBaseEnvStats, 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.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts |
| Constructor Detail |
|---|
public StdTitle()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdItempublic java.lang.String displayText()
Environmental
displayText in interface EnvironmentaldisplayText in class StdItempublic int baseGoldValue()
Item
baseGoldValue in interface ItembaseGoldValue in class StdItempublic int value()
Item
value in interface Itemvalue in class StdItempublic void setBaseGoldValue(int newValue)
public int landPrice()
LandTitle
landPrice in interface LandTitlepublic void setLandPrice(int price)
LandTitle
setLandPrice in interface LandTitleprice - the price of the propertypublic void setBackTaxes(int amount)
LandTitle
setBackTaxes in interface LandTitleamount - the back taxes owedpublic int backTaxes()
LandTitle
backTaxes in interface LandTitlepublic boolean rentalProperty()
LandTitle
rentalProperty in interface LandTitlepublic void setRentalProperty(boolean truefalse)
LandTitle
setRentalProperty in interface LandTitletruefalse - true if the property is rental, false if ownable outrightpublic java.lang.String landOwner()
LandTitle
landOwner in interface LandTitlepublic void setLandOwner(java.lang.String owner)
LandTitle
setLandOwner in interface LandTitleowner - the name of the owner of the propertypublic LandTitle fetchALandTitle()
public java.lang.String landPropertyID()
LandTitle
landPropertyID in interface LandTitlepublic void updateTitleName()
public void setLandPropertyID(java.lang.String landID)
LandTitle
setLandPropertyID in interface LandTitlelandID - the roomID or the Area name of the property for salepublic void updateLot(java.util.Vector optPlayerList)
LandTitle
updateLot in interface LandTitleoptPlayerList - - null, or a vector of player names for quick confirmsLandTitle.updateTitle()public void updateTitle()
LandTitle
updateTitle in interface LandTitleLandTitle.updateLot(Vector)public java.util.Vector getPropertyRooms()
LandTitle
getPropertyRooms in interface LandTitleRoompublic void recoverEnvStats()
Environmental
recoverEnvStats in interface EnvironmentalrecoverEnvStats in class StdItemEnvironmental.baseEnvStats(),
Environmental.envStats(),
Environmental.addEffect(Ability),
Behavable.addBehavior(Behavior),
EnvStats
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdItemmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdItemmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||