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()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public CMObject copyOf()
CMObject
public void setArrestingOfficer(Area legalArea, MOB mob)
LegalWarrant
setArrestingOfficer
in interface LegalWarrant
legalArea
- the Area governing the lawmob
- the actual living mob officer who will enforce the warrantLegalWarrant.arrestingOfficer()
public MOB criminal()
LegalWarrant
criminal
in interface LegalWarrant
LegalWarrant.setCriminal(MOB)
public MOB victim()
LegalWarrant
victim
in interface LegalWarrant
LegalWarrant.setVictim(MOB)
public MOB witness()
LegalWarrant
witness
in interface LegalWarrant
LegalWarrant.setWitness(MOB)
public MOB arrestingOfficer()
LegalWarrant
arrestingOfficer
in interface LegalWarrant
LegalWarrant.setArrestingOfficer(Area, MOB)
public Room jail()
LegalWarrant
jail
in interface LegalWarrant
LegalWarrant.setJail(Room)
public Room releaseRoom()
LegalWarrant
releaseRoom
in interface LegalWarrant
LegalWarrant.setReleaseRoom(Room)
public java.lang.String crime()
LegalWarrant
crime
in interface LegalWarrant
LegalWarrant.setCrime(String)
,
Law.BIT_CRIMENAME
public int punishmentCode()
LegalWarrant
punishmentCode
in interface LegalWarrant
LegalWarrant.setPunishment(int)
,
LegalWarrant.getPunishmentParm(int)
,
LegalWarrant.addPunishmentParm(int, String)
,
Law.PUNISHMENT_DESCS
,
Law.PUNISHMENTMASK_DESCS
public java.lang.String getPunishmentParm(int code)
LegalWarrant
getPunishmentParm
in interface LegalWarrant
code
- the punishment mask bitmap codeLegalWarrant.addPunishmentParm(int, String)
,
LegalWarrant.punishmentCode()
,
LegalWarrant.setPunishment(int)
,
Law.PUNISHMENTMASK_DESCS
public void addPunishmentParm(int code, java.lang.String parm)
LegalWarrant
addPunishmentParm
in interface LegalWarrant
code
- the punishment mask bitmap codeparm
- the parameter to setLegalWarrant.getPunishmentParm(int)
,
LegalWarrant.punishmentCode()
,
LegalWarrant.setPunishment(int)
,
Law.PUNISHMENTMASK_DESCS
public int jailTime()
LegalWarrant
jailTime
in interface LegalWarrant
LegalWarrant.setJailTime(int)
public int state()
LegalWarrant
state
in interface LegalWarrant
LegalWarrant.setState(int)
,
Law.STATE_ARRESTING
,
Law.STATE_SEEKING
public int offenses()
LegalWarrant
offenses
in interface LegalWarrant
LegalWarrant.setOffenses(int)
,
Law.oldWarrants()
public long lastOffense()
LegalWarrant
lastOffense
in interface LegalWarrant
LegalWarrant.setLastOffense(long)
,
Law.oldWarrants()
public long travelAttemptTime()
LegalWarrant
travelAttemptTime
in interface LegalWarrant
LegalWarrant.setTravelAttemptTime(long)
public java.lang.String warnMsg()
LegalWarrant
warnMsg
in interface LegalWarrant
LegalWarrant.setWarnMsg(String)
public void setCriminal(MOB mob)
LegalWarrant
setCriminal
in interface LegalWarrant
mob
- the actual player/mob criminal accused of the crime.LegalWarrant.criminal()
public void setVictim(MOB mob)
LegalWarrant
setVictim
in interface LegalWarrant
mob
- the victim of the crime, or nullLegalWarrant.victim()
public void setWitness(MOB mob)
LegalWarrant
setWitness
in interface LegalWarrant
mob
- the witness of the crime (or null)LegalWarrant.witness()
public void setJail(Room R)
LegalWarrant
setJail
in interface LegalWarrant
R
- the room into which this criminal will be jailed.LegalWarrant.jail()
public void setReleaseRoom(Room R)
LegalWarrant
setReleaseRoom
in interface LegalWarrant
R
- the room into which this criminal will be released after jail.LegalWarrant.releaseRoom()
public void setCrime(java.lang.String newcrime)
LegalWarrant
setCrime
in interface LegalWarrant
newcrime
- the crime nameLegalWarrant.crime()
,
Law.BIT_CRIMENAME
public void setPunishment(int code)
LegalWarrant
setPunishment
in interface LegalWarrant
code
- the full punishment code for the crimeLegalWarrant.punishmentCode()
,
LegalWarrant.getPunishmentParm(int)
,
LegalWarrant.addPunishmentParm(int, String)
,
Law.PUNISHMENT_DESCS
,
Law.PUNISHMENTMASK_DESCS
public void setJailTime(int time)
LegalWarrant
setJailTime
in interface LegalWarrant
time
- the number of ticks to be jailed forLegalWarrant.jailTime()
public void setState(int newstate)
LegalWarrant
setState
in interface LegalWarrant
newstate
- the current state of adjudication.LegalWarrant.state()
,
LegalWarrant.getLastStateChangeTime()
,
Law.STATE_DETAINING
,
Law.STATE_EXECUTING
public long getLastStateChangeTime()
LegalWarrant
getLastStateChangeTime
in interface LegalWarrant
LegalWarrant.setState(int)
public void setOffenses(int num)
LegalWarrant
setOffenses
in interface LegalWarrant
num
- the number of times this criminal has committed this crime.LegalWarrant.offenses()
,
Law.oldWarrants()
public void setLastOffense(long last)
LegalWarrant
setLastOffense
in interface LegalWarrant
last
- the last time this crime was done, in milisLegalWarrant.lastOffense()
,
Law.oldWarrants()
public void setTravelAttemptTime(long time)
LegalWarrant
setTravelAttemptTime
in interface LegalWarrant
time
- the milis time since the trip beganLegalWarrant.travelAttemptTime()
public void setWarnMsg(java.lang.String msg)
LegalWarrant
setWarnMsg
in interface LegalWarrant
msg
- the warning msg givenLegalWarrant.warnMsg()
public long getIgnoreUntilTime()
LegalWarrant
getIgnoreUntilTime
in interface LegalWarrant
LegalWarrant.setIgnoreUntilTime(long)
public void setIgnoreUntilTime(long time)
LegalWarrant
setIgnoreUntilTime
in interface LegalWarrant
time
- the real time in ms when the warrant can no longer be ignoredLegalWarrant.getIgnoreUntilTime()