|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Abilities.Properties.Property
com.planet_ink.coffee_mud.Abilities.Properties.Prop_RoomForSale
public class Prop_RoomForSale
| Field Summary | |
|---|---|
protected int |
lastDayDone
|
protected int |
lastItemNums
|
static java.lang.String |
RENTSTR
|
static java.lang.String |
SALESTR
|
protected boolean |
scheduleReset
|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.Properties.Property |
|---|
affected, amDestroyed, empty, envStats, miscText, savable |
| Constructor Summary | |
|---|---|
Prop_RoomForSale()
|
|
| Method Summary | |
|---|---|
java.lang.String |
accountForYourself()
For use by the identify spell, this should return a nice description of any properties incorporated by this effect. |
int |
backTaxes()
If back taxes is owned on this property, this is how the value is retreived. |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
static void |
colorForSale(Room R,
boolean rental,
boolean reset)
|
static boolean |
doRentalProperty(Area A,
java.lang.String ID,
java.lang.String owner,
int rent)
|
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
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 |
java.lang.String |
name()
The displayable name of this object. |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
boolean |
rentalProperty()
Whether this property is a rental. |
static boolean |
robberyCheck(LandTitle A,
CMMsg msg)
|
void |
setBackTaxes(int tax)
If back taxes is owned on this property, this is how the value is set. |
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. |
static boolean |
shopkeeperMobPresent(Room R)
|
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. |
static int |
updateLotWithThisData(Room R,
LandTitle T,
boolean resetRoomName,
boolean clearAllItems,
java.util.Vector optPlayerList,
int lastNumItems)
|
void |
updateTitle()
Simply resaves the rooms represented by this title to reflect change in ownership or price. |
| 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, displayText, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, Name, numEffects, rawImage, recoverEnvStats, 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 |
| Field Detail |
|---|
public static final java.lang.String SALESTR
public static final java.lang.String RENTSTR
protected int lastItemNums
protected int lastDayDone
protected boolean scheduleReset
| Constructor Detail |
|---|
public Prop_RoomForSale()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class Propertypublic java.lang.String name()
Environmental
name in interface Environmentalname in interface Tickablename in class PropertyEnvironmental.Name()protected int canAffectCode()
Property
canAffectCode in class PropertyAbilitypublic java.lang.String accountForYourself()
Ability
accountForYourself in interface AbilityaccountForYourself in class Propertypublic int landPrice()
LandTitle
landPrice in interface LandTitlepublic void setLandPrice(int price)
LandTitle
setLandPrice in interface LandTitleprice - the price of the propertypublic 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 int backTaxes()
LandTitle
backTaxes in interface LandTitlepublic void setBackTaxes(int tax)
LandTitle
setBackTaxes in interface LandTitletax - the back taxes owedpublic 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 void updateTitle()
LandTitle
updateTitle in interface LandTitleLandTitle.updateLot(Vector)public java.lang.String landPropertyID()
LandTitle
landPropertyID in interface LandTitlepublic void setLandPropertyID(java.lang.String landID)
LandTitle
setLandPropertyID in interface LandTitlelandID - the roomID or the Area name of the property for salepublic static boolean shopkeeperMobPresent(Room R)
public static boolean robberyCheck(LandTitle A,
CMMsg msg)
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class PropertymyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class PropertymyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public static void colorForSale(Room R,
boolean rental,
boolean reset)
public java.util.Vector getPropertyRooms()
LandTitle
getPropertyRooms in interface LandTitleRoom
public static int updateLotWithThisData(Room R,
LandTitle T,
boolean resetRoomName,
boolean clearAllItems,
java.util.Vector optPlayerList,
int lastNumItems)
public static boolean doRentalProperty(Area A,
java.lang.String ID,
java.lang.String owner,
int rent)
public void updateLot(java.util.Vector optPlayerList)
LandTitle
updateLot in interface LandTitleoptPlayerList - - null, or a vector of player names for quick confirmsLandTitle.updateTitle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||