DefaultArrestWarrantpublic interface LegalWarrant extends CMCommon
LegalBehavior,
LawidConverter| 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.
|
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.
|
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.
|
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 crime) |
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 state) |
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)
|
copyOf, ID, initializeClass, name, newInstanceMOB arrestingOfficer()
setArrestingOfficer(Area, MOB)void setArrestingOfficer(Area legalArea, MOB mob)
legalArea - the Area governing the lawmob - the actual living mob officer who will enforce the warrantarrestingOfficer()MOB criminal()
setCriminal(MOB)void setCriminal(MOB mob)
mob - the actual player/mob criminal accused of the crime.criminal()MOB victim()
setVictim(MOB)void setVictim(MOB mob)
mob - the victim of the crime, or nullvictim()MOB witness()
setWitness(MOB)void setWitness(MOB mob)
mob - the witness of the crime (or null)witness()java.lang.String crime()
setCrime(String),
Law.BIT_CRIMENAMEvoid setCrime(java.lang.String crime)
crime - the crime namecrime(),
Law.BIT_CRIMENAMEint punishmentCode()
setPunishment(int),
getPunishmentParm(int),
addPunishmentParm(int, String),
Law.PUNISHMENT_DESCS,
Law.PUNISHMENTMASK_DESCSvoid setPunishment(int code)
code - the full punishment code for the crimepunishmentCode(),
getPunishmentParm(int),
addPunishmentParm(int, String),
Law.PUNISHMENT_DESCS,
Law.PUNISHMENTMASK_DESCSjava.lang.String getPunishmentParm(int code)
code - the punishment mask bitmap codeaddPunishmentParm(int, String),
punishmentCode(),
setPunishment(int),
Law.PUNISHMENTMASK_DESCSvoid addPunishmentParm(int code,
java.lang.String parm)
code - the punishment mask bitmap codeparm - the parameter to setgetPunishmentParm(int),
punishmentCode(),
setPunishment(int),
Law.PUNISHMENTMASK_DESCSint jailTime()
setJailTime(int)void setJailTime(int time)
time - the number of ticks to be jailed forjailTime()int state()
setState(int),
Law.STATE_ARRESTING,
Law.STATE_SEEKINGvoid setState(int state)
state - the current state of adjudication.state(),
getLastStateChangeTime(),
Law.STATE_DETAINING,
Law.STATE_EXECUTINGint offenses()
setOffenses(int),
Law.oldWarrants()void setOffenses(int num)
num - the number of times this criminal has committed this crime.offenses(),
Law.oldWarrants()long lastOffense()
setLastOffense(long),
Law.oldWarrants()void setLastOffense(long last)
last - the last time this crime was done, in milislastOffense(),
Law.oldWarrants()long travelAttemptTime()
setTravelAttemptTime(long)void setTravelAttemptTime(long time)
time - the milis time since the trip begantravelAttemptTime()java.lang.String warnMsg()
setWarnMsg(String)void setWarnMsg(java.lang.String msg)
msg - the warning msg givenwarnMsg()void setJail(Room R)
R - the room into which this criminal will be jailed.jail()Room jail()
setJail(Room)Room releaseRoom()
setReleaseRoom(Room)void setReleaseRoom(Room R)
R - the room into which this criminal will be released after jail.releaseRoom()long getLastStateChangeTime()
setState(int)long getIgnoreUntilTime()
setIgnoreUntilTime(long)void setIgnoreUntilTime(long time)
time - the real time in ms when the warrant can no longer be ignoredgetIgnoreUntilTime()