CMCommon, LegalWarrant, CMObject, java.lang.Cloneable, java.lang.Comparable<CMObject>public class DefaultArrestWarrant extends java.lang.Object implements LegalWarrant
idConverter| Constructor | Description | 
|---|---|
| DefaultArrestWarrant() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| 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 | punishmentCode() | 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) | 
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic CMObject copyOf()
CMObjectpublic void setArrestingOfficer(Area legalArea, MOB mob)
LegalWarrantsetArrestingOfficer in interface LegalWarrantlegalArea - the Area governing the lawmob - the actual living mob officer who will enforce the warrantLegalWarrant.arrestingOfficer()public MOB criminal()
LegalWarrantcriminal in interface LegalWarrantLegalWarrant.setCriminal(MOB)public MOB victim()
LegalWarrantvictim in interface LegalWarrantLegalWarrant.setVictim(MOB)public MOB witness()
LegalWarrantwitness in interface LegalWarrantLegalWarrant.setWitness(MOB)public MOB arrestingOfficer()
LegalWarrantarrestingOfficer in interface LegalWarrantLegalWarrant.setArrestingOfficer(Area, MOB)public Room jail()
LegalWarrantjail in interface LegalWarrantLegalWarrant.setJail(Room)public Room releaseRoom()
LegalWarrantreleaseRoom in interface LegalWarrantLegalWarrant.setReleaseRoom(Room)public java.lang.String crime()
LegalWarrantcrime in interface LegalWarrantLegalWarrant.setCrime(String), 
Law.BIT_CRIMENAMEpublic int punishmentCode()
LegalWarrantpunishmentCode in interface LegalWarrantLegalWarrant.setPunishment(int), 
LegalWarrant.getPunishmentParm(int), 
LegalWarrant.addPunishmentParm(int, String), 
Law.PUNISHMENT_DESCS, 
Law.PUNISHMENTMASK_DESCSpublic java.lang.String getPunishmentParm(int code)
LegalWarrantgetPunishmentParm in interface LegalWarrantcode - the punishment mask bitmap codeLegalWarrant.addPunishmentParm(int, String), 
LegalWarrant.punishmentCode(), 
LegalWarrant.setPunishment(int), 
Law.PUNISHMENTMASK_DESCSpublic void addPunishmentParm(int code,
                              java.lang.String parm)
LegalWarrantaddPunishmentParm in interface LegalWarrantcode - the punishment mask bitmap codeparm - the parameter to setLegalWarrant.getPunishmentParm(int), 
LegalWarrant.punishmentCode(), 
LegalWarrant.setPunishment(int), 
Law.PUNISHMENTMASK_DESCSpublic int jailTime()
LegalWarrantjailTime in interface LegalWarrantLegalWarrant.setJailTime(int)public int state()
LegalWarrantstate in interface LegalWarrantLegalWarrant.setState(int), 
Law.STATE_ARRESTING, 
Law.STATE_SEEKINGpublic int offenses()
LegalWarrantoffenses in interface LegalWarrantLegalWarrant.setOffenses(int), 
Law.oldWarrants()public long lastOffense()
LegalWarrantlastOffense in interface LegalWarrantLegalWarrant.setLastOffense(long), 
Law.oldWarrants()public long travelAttemptTime()
LegalWarranttravelAttemptTime in interface LegalWarrantLegalWarrant.setTravelAttemptTime(long)public java.lang.String warnMsg()
LegalWarrantwarnMsg in interface LegalWarrantLegalWarrant.setWarnMsg(String)public void setCriminal(MOB mob)
LegalWarrantsetCriminal in interface LegalWarrantmob - the actual player/mob criminal accused of the crime.LegalWarrant.criminal()public void setVictim(MOB mob)
LegalWarrantsetVictim in interface LegalWarrantmob - the victim of the crime, or nullLegalWarrant.victim()public void setWitness(MOB mob)
LegalWarrantsetWitness in interface LegalWarrantmob - the witness of the crime (or null)LegalWarrant.witness()public void setJail(Room R)
LegalWarrantsetJail in interface LegalWarrantR - the room into which this criminal will be jailed.LegalWarrant.jail()public void setReleaseRoom(Room R)
LegalWarrantsetReleaseRoom in interface LegalWarrantR - the room into which this criminal will be released after jail.LegalWarrant.releaseRoom()public void setCrime(java.lang.String newcrime)
LegalWarrantsetCrime in interface LegalWarrantnewcrime - the crime nameLegalWarrant.crime(), 
Law.BIT_CRIMENAMEpublic void setPunishment(int code)
LegalWarrantsetPunishment in interface LegalWarrantcode - the full punishment code for the crimeLegalWarrant.punishmentCode(), 
LegalWarrant.getPunishmentParm(int), 
LegalWarrant.addPunishmentParm(int, String), 
Law.PUNISHMENT_DESCS, 
Law.PUNISHMENTMASK_DESCSpublic void setJailTime(int time)
LegalWarrantsetJailTime in interface LegalWarranttime - the number of ticks to be jailed forLegalWarrant.jailTime()public void setState(int newstate)
LegalWarrantsetState in interface LegalWarrantnewstate - the current state of adjudication.LegalWarrant.state(), 
LegalWarrant.getLastStateChangeTime(), 
Law.STATE_DETAINING, 
Law.STATE_EXECUTINGpublic long getLastStateChangeTime()
LegalWarrantgetLastStateChangeTime in interface LegalWarrantLegalWarrant.setState(int)public void setOffenses(int num)
LegalWarrantsetOffenses in interface LegalWarrantnum - the number of times this criminal has committed this crime.LegalWarrant.offenses(), 
Law.oldWarrants()public void setLastOffense(long last)
LegalWarrantsetLastOffense in interface LegalWarrantlast - the last time this crime was done, in milisLegalWarrant.lastOffense(), 
Law.oldWarrants()public void setTravelAttemptTime(long time)
LegalWarrantsetTravelAttemptTime in interface LegalWarranttime - the milis time since the trip beganLegalWarrant.travelAttemptTime()public void setWarnMsg(java.lang.String msg)
LegalWarrantsetWarnMsg in interface LegalWarrantmsg - the warning msg givenLegalWarrant.warnMsg()public long getIgnoreUntilTime()
LegalWarrantgetIgnoreUntilTime in interface LegalWarrantLegalWarrant.setIgnoreUntilTime(long)public void setIgnoreUntilTime(long time)
LegalWarrantsetIgnoreUntilTime in interface LegalWarranttime - the real time in ms when the warrant can no longer be ignoredLegalWarrant.getIgnoreUntilTime()