|
|||||||||
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 CMObject
ID
in class StdItem
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
displayText
in class StdItem
public int baseGoldValue()
Item
baseGoldValue
in interface Item
baseGoldValue
in class StdItem
public int value()
Item
value
in interface Item
value
in class StdItem
public void setBaseGoldValue(int newValue)
public boolean allowsExpansionConstruction()
LandTitle
allowsExpansionConstruction
in interface LandTitle
LandTitle.generateNextRoomTitle()
public int getPrice()
PrivateProperty
getPrice
in interface PrivateProperty
public LandTitle generateNextRoomTitle()
LandTitle
generateNextRoomTitle
in interface LandTitle
LandTitle.allowsExpansionConstruction()
public void setPrice(int price)
PrivateProperty
setPrice
in interface PrivateProperty
price
- the price of the propertypublic void setBackTaxes(int amount)
LandTitle
setBackTaxes
in interface LandTitle
amount
- the back taxes owedpublic int backTaxes()
LandTitle
backTaxes
in interface LandTitle
public void setGridLayout(boolean layout)
LandTitle
setGridLayout
in interface LandTitle
layout
- true if the rooms can lay out as a grid, false otherwisepublic boolean gridLayout()
LandTitle
gridLayout
in interface LandTitle
public boolean rentalProperty()
LandTitle
rentalProperty
in interface LandTitle
public java.lang.String getUniqueLotID()
LandTitle
getUniqueLotID
in interface LandTitle
public void setRentalProperty(boolean truefalse)
LandTitle
setRentalProperty
in interface LandTitle
truefalse
- true if the property is rental, false if ownable outrightpublic CMObject getOwnerObject()
PrivateProperty
getOwnerObject
in interface PrivateProperty
public java.lang.String getOwnerName()
PrivateProperty
getOwnerName
in interface PrivateProperty
public void setOwnerName(java.lang.String owner)
PrivateProperty
setOwnerName
in interface PrivateProperty
owner
- the name of the owner of the propertypublic LandTitle fetchALandTitle()
public PrivateProperty fetchAPropertyRecord()
public java.lang.String landPropertyID()
LandTitle
landPropertyID
in interface LandTitle
public void updateTitleName()
public void setLandPropertyID(java.lang.String landID)
LandTitle
setLandPropertyID
in interface LandTitle
landID
- the roomID or the Area name of the property for salepublic void updateLot(java.util.Set<java.lang.String> optPlayerList)
LandTitle
updateLot
in interface LandTitle
optPlayerList
- - null, or a vector of player names for quick confirmsLandTitle.updateTitle()
public void updateTitle()
LandTitle
updateTitle
in interface LandTitle
LandTitle.updateLot(Set)
public java.util.List<Room> getConnectedPropertyRooms()
LandTitle
getConnectedPropertyRooms
in interface LandTitle
Room
public java.util.List<Room> getAllTitledRooms()
LandTitle
getAllTitledRooms
in interface LandTitle
Room
public java.lang.String getTitleID()
PrivateProperty
getTitleID
in interface PrivateProperty
public void recoverPhyStats()
Affectable
recoverPhyStats
in interface Affectable
recoverPhyStats
in class StdItem
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.addEffect(Ability)
,
Behavable.addBehavior(Behavior)
,
PhyStats
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
okMessage
in class StdItem
myHost
- 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 MsgListener
executeMsg
in class StdItem
myHost
- 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 |