|
|||||||||
| 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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
Wearable.CODES |
| Field Summary | |
|---|---|
protected static java.lang.String |
CANCEL_WORD
|
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
|---|
affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, 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_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD |
| Constructor Summary | |
|---|---|
StdTitle()
|
|
| Method Summary | |
|---|---|
boolean |
allowsExpansionConstruction()
Returns whether this title allows property to be expanded through masonry or construction. |
int |
backTaxes()
If back taxes is owned on this property, this is how the value is retrieved. |
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()
|
PrivateProperty |
fetchAPropertyRecord()
|
LandTitle |
generateNextRoomTitle()
If this title allows expansion construction, this this will return the new title to assign to the newly constructed rooms. |
java.util.List<Room> |
getAllTitledRooms()
The complete set of room objects represented by this title |
java.util.List<Room> |
getConnectedPropertyRooms()
The complete set of room objects that are tied together by one or more titles. |
java.lang.String |
getOwnerName()
Get the owner of the property, usually a clan name or a player name. |
CMObject |
getOwnerObject()
Get the actual clan or mob owner of the property, or null if it can not. |
int |
getPrice()
The value of the property in base currency values |
java.lang.String |
getTitleID()
Returns a unique id for this particular title and the rooms is represents, even if the contents change. |
java.lang.String |
getUniqueLotID()
Returns a unique identifier corresponding to getConnectedPropertyRooms. |
boolean |
gridLayout()
Returns whether this title creates connected walls between new rooms as if the rooms were laid out in a grid. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
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 |
recoverPhyStats()
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to all surrounding objects with affectPhyStats(Environmental,PhyStats) 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 |
setGridLayout(boolean layout)
Sets whether this title creates connected walls between new rooms as if the rooms were laid out in a grid. |
void |
setLandPropertyID(java.lang.String landID)
Set the roomID or the Area name of the property for sale |
void |
setOwnerName(java.lang.String owner)
Set the owner of the property, usually a clan name or a player name. |
void |
setPrice(int price)
set the value of the property in base currency values |
void |
setRentalProperty(boolean truefalse)
Sets whether this property is a rental. |
void |
updateLot(java.util.Set<java.lang.String> 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, 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.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, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
protected static final java.lang.String CANCEL_WORD
| 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 boolean allowsExpansionConstruction()
LandTitle
allowsExpansionConstruction in interface LandTitleLandTitle.generateNextRoomTitle()public int getPrice()
PrivateProperty
getPrice in interface PrivatePropertypublic LandTitle generateNextRoomTitle()
LandTitle
generateNextRoomTitle in interface LandTitleLandTitle.allowsExpansionConstruction()public void setPrice(int price)
PrivateProperty
setPrice in interface PrivatePropertyprice - 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 void setGridLayout(boolean layout)
LandTitle
setGridLayout in interface LandTitlelayout - true if the rooms can lay out as a grid, false otherwisepublic boolean gridLayout()
LandTitle
gridLayout in interface LandTitlepublic boolean rentalProperty()
LandTitle
rentalProperty in interface LandTitlepublic java.lang.String getUniqueLotID()
LandTitle
getUniqueLotID in interface LandTitlepublic void setRentalProperty(boolean truefalse)
LandTitle
setRentalProperty in interface LandTitletruefalse - true if the property is rental, false if ownable outrightpublic CMObject getOwnerObject()
PrivateProperty
getOwnerObject in interface PrivatePropertypublic java.lang.String getOwnerName()
PrivateProperty
getOwnerName in interface PrivatePropertypublic void setOwnerName(java.lang.String owner)
PrivateProperty
setOwnerName in interface PrivatePropertyowner - the name of the owner of the propertypublic LandTitle fetchALandTitle()
public PrivateProperty fetchAPropertyRecord()
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.Set<java.lang.String> 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(Set)public java.util.List<Room> getConnectedPropertyRooms()
LandTitle
getConnectedPropertyRooms in interface LandTitleRoompublic java.util.List<Room> getAllTitledRooms()
LandTitle
getAllTitledRooms in interface LandTitleRoompublic java.lang.String getTitleID()
PrivateProperty
getTitleID in interface PrivatePropertypublic void recoverPhyStats()
Affectable
recoverPhyStats in interface AffectablerecoverPhyStats in class StdItemAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStats
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 | ||||||||