|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultArrestWarrant
public class DefaultArrestWarrant
| Constructor Summary | |
|---|---|
DefaultArrestWarrant()
|
|
| Method Summary | |
|---|---|
void |
addPunishmentParm(int code,
java.lang.String parm)
If applicable, sets any parameters associated with a particular bitmask on the punishment. |
MOB |
arrestingOfficer()
If the criminal has been identified by an otherwise unoccupied officer, this will be that officer. |
int |
compareTo(CMObject o)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
java.lang.String |
crime()
The crime name |
MOB |
criminal()
The actual player/mob criminal accused of the crime. |
long |
getIgnoreUntilTime()
Returns the real time in ms when the warrant can no longer be ignored |
long |
getLastStateChangeTime()
Returns the real time in ms when the state last changed. |
java.lang.String |
getPunishmentParm(int code)
If applicable, returns any parameters associated with a particular bitmask on the punishment. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
Room |
jail()
Returns the room into which this criminal will be jailed. |
int |
jailTime()
If applicable, returns the number of ticks the punishment calls for the criminal to remain in jail. |
long |
lastOffense()
Returns the last time, in miliseconds since 1970, the criminal has committed this crime. |
java.lang.String |
name()
The displayable name of this object. |
CMObject |
newInstance()
Returns a new instance of this class. |
int |
offenses()
Returns the number of times this criminal has done this crime. |
int |
punishment()
Gets the full punishment code for the crime |
Room |
releaseRoom()
Returns the room into which this criminal will be released after jail. |
void |
setArrestingOfficer(Area legalArea,
MOB mob)
If the criminal has been identified by an otherwise unoccupied officer, this will set that officer. |
void |
setCrime(java.lang.String newcrime)
Sets the crime name |
void |
setCriminal(MOB mob)
Sets the actual player/mob criminal accused of the crime. |
void |
setIgnoreUntilTime(long time)
Sets the real time in ms when the warrant can no longer be ignored |
void |
setJail(Room R)
Sets the room into which this criminal will be jailed. |
void |
setJailTime(int time)
If applicable, sets the number of ticks the punishment calls for the criminal to remain in jail. |
void |
setLastOffense(long last)
Sets the last time, in miliseconds since 1970, the criminal has committed this crime. |
void |
setOffenses(int num)
Sets the number of times this criminal has done this crime. |
void |
setPunishment(int code)
Sets the full punishment code for the crime |
void |
setReleaseRoom(Room R)
Sets the room into which this criminal will be released after jail. |
void |
setState(int newstate)
Sets the current state of adjudication. |
void |
setTravelAttemptTime(long time)
Sets the time, in milis since 1970, that a trip to the judge or to the jail was started. |
void |
setVictim(MOB mob)
If applicable, sets the victim of the crime (or null) |
void |
setWarnMsg(java.lang.String msg)
Sets the warning message given to the criminal by the officer. |
void |
setWitness(MOB mob)
If applicable, sets the witness of the crime (or null) |
int |
state()
Returns the current state of adjudication. |
long |
travelAttemptTime()
Returns the time, in milis since 1970, that a trip to the judge or to the jail was started. |
MOB |
victim()
If applicable, the victim of the crime (or null) |
java.lang.String |
warnMsg()
Returns the warning message given to the criminal by the officer. |
MOB |
witness()
If applicable, gets the witness of the crime (or null) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultArrestWarrant()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic java.lang.String name()
CMObject
name in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public void initializeClass()
CMObject
initializeClass in interface CMObjectpublic CMObject copyOf()
CMObject
copyOf in interface CMObject
public void setArrestingOfficer(Area legalArea,
MOB mob)
LegalWarrant
setArrestingOfficer in interface LegalWarrantlegalArea - the Area governing the lawmob - the actual living mob officer who will enforce the warrantLegalWarrant.arrestingOfficer()public MOB criminal()
LegalWarrant
criminal in interface LegalWarrantLegalWarrant.setCriminal(MOB)public MOB victim()
LegalWarrant
victim in interface LegalWarrantLegalWarrant.setVictim(MOB)public MOB witness()
LegalWarrant
witness in interface LegalWarrantLegalWarrant.setWitness(MOB)public MOB arrestingOfficer()
LegalWarrant
arrestingOfficer in interface LegalWarrantLegalWarrant.setArrestingOfficer(Area, MOB)public Room jail()
LegalWarrant
jail in interface LegalWarrantLegalWarrant.setJail(Room)public Room releaseRoom()
LegalWarrant
releaseRoom in interface LegalWarrantLegalWarrant.setReleaseRoom(Room)public java.lang.String crime()
LegalWarrant
crime in interface LegalWarrantLegalWarrant.setCrime(String),
Law.BIT_CRIMENAMEpublic int punishment()
LegalWarrant
punishment in interface LegalWarrantLegalWarrant.setPunishment(int),
LegalWarrant.getPunishmentParm(int),
LegalWarrant.addPunishmentParm(int, String),
Law.PUNISHMENT_DESCS,
Law.PUNISHMENTMASK_DESCSpublic java.lang.String getPunishmentParm(int code)
LegalWarrant
getPunishmentParm in interface LegalWarrantcode - the punishment mask bitmap code
LegalWarrant.addPunishmentParm(int, String),
LegalWarrant.punishment(),
LegalWarrant.setPunishment(int),
Law.PUNISHMENTMASK_DESCS
public void addPunishmentParm(int code,
java.lang.String parm)
LegalWarrant
addPunishmentParm in interface LegalWarrantcode - the punishment mask bitmap codeparm - the parameter to setLegalWarrant.getPunishmentParm(int),
LegalWarrant.punishment(),
LegalWarrant.setPunishment(int),
Law.PUNISHMENTMASK_DESCSpublic int jailTime()
LegalWarrant
jailTime in interface LegalWarrantLegalWarrant.setJailTime(int)public int state()
LegalWarrant
state in interface LegalWarrantLegalWarrant.setState(int),
Law.STATE_ARRESTING,
Law.STATE_SEEKINGpublic int offenses()
LegalWarrant
offenses in interface LegalWarrantLegalWarrant.setOffenses(int),
Law.oldWarrants()public long lastOffense()
LegalWarrant
lastOffense in interface LegalWarrantLegalWarrant.setLastOffense(long),
Law.oldWarrants()public long travelAttemptTime()
LegalWarrant
travelAttemptTime in interface LegalWarrantLegalWarrant.setTravelAttemptTime(long)public java.lang.String warnMsg()
LegalWarrant
warnMsg in interface LegalWarrantLegalWarrant.setWarnMsg(String)public void setCriminal(MOB mob)
LegalWarrant
setCriminal in interface LegalWarrantmob - the actual player/mob criminal accused of the crime.LegalWarrant.criminal()public void setVictim(MOB mob)
LegalWarrant
setVictim in interface LegalWarrantmob - the victim of the crime, or nullLegalWarrant.victim()public void setWitness(MOB mob)
LegalWarrant
setWitness in interface LegalWarrantmob - the witness of the crime (or null)LegalWarrant.witness()public void setJail(Room R)
LegalWarrant
setJail in interface LegalWarrantR - the room into which this criminal will be jailed.LegalWarrant.jail()public void setReleaseRoom(Room R)
LegalWarrant
setReleaseRoom in interface LegalWarrantR - the room into which this criminal will be released after jail.LegalWarrant.releaseRoom()public void setCrime(java.lang.String newcrime)
LegalWarrant
setCrime in interface LegalWarrantnewcrime - the crime nameLegalWarrant.crime(),
Law.BIT_CRIMENAMEpublic void setPunishment(int code)
LegalWarrant
setPunishment in interface LegalWarrantcode - the full punishment code for the crimeLegalWarrant.punishment(),
LegalWarrant.getPunishmentParm(int),
LegalWarrant.addPunishmentParm(int, String),
Law.PUNISHMENT_DESCS,
Law.PUNISHMENTMASK_DESCSpublic void setJailTime(int time)
LegalWarrant
setJailTime in interface LegalWarranttime - the number of ticks to be jailed forLegalWarrant.jailTime()public void setState(int newstate)
LegalWarrant
setState in interface LegalWarrantnewstate - the current state of adjudication.LegalWarrant.state(),
LegalWarrant.getLastStateChangeTime(),
Law.STATE_DETAINING,
Law.STATE_EXECUTINGpublic long getLastStateChangeTime()
LegalWarrant
getLastStateChangeTime in interface LegalWarrantLegalWarrant.setState(int)public void setOffenses(int num)
LegalWarrant
setOffenses in interface LegalWarrantnum - the number of times this criminal has committed this crime.LegalWarrant.offenses(),
Law.oldWarrants()public void setLastOffense(long last)
LegalWarrant
setLastOffense in interface LegalWarrantlast - the last time this crime was done, in milisLegalWarrant.lastOffense(),
Law.oldWarrants()public void setTravelAttemptTime(long time)
LegalWarrant
setTravelAttemptTime in interface LegalWarranttime - the milis time since the trip beganLegalWarrant.travelAttemptTime()public void setWarnMsg(java.lang.String msg)
LegalWarrant
setWarnMsg in interface LegalWarrantmsg - the warning msg givenLegalWarrant.warnMsg()public long getIgnoreUntilTime()
LegalWarrant
getIgnoreUntilTime in interface LegalWarrantLegalWarrant.setIgnoreUntilTime(long)public void setIgnoreUntilTime(long time)
LegalWarrant
setIgnoreUntilTime in interface LegalWarranttime - the real time in ms when the warrant can no longer be ignoredLegalWarrant.getIgnoreUntilTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||