Behavior
, LegalBehavior
, CMObject
, Contingent
, Modifiable
, MsgListener
, Tickable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
Conquerable
public class Arrest extends StdBehavior implements LegalBehavior
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<java.lang.String,java.lang.Boolean> |
bannedItemCache |
|
protected java.util.Set<java.lang.String> |
bannedMOBCheck |
|
protected java.util.Map<MOB,java.lang.Double> |
finesAssessed |
|
protected java.lang.String |
lastAreaName |
|
protected Room |
lastBanishR |
|
protected boolean |
loadAttempt |
|
protected java.util.Map<java.lang.String,java.lang.Object> |
suppressedCrimes |
CAN_AREAS, CAN_EXITS, CAN_ITEMS, CAN_MOBS, CAN_ROOMS, FLAG_LEGALBEHAVIOR, FLAG_MOBILITY, FLAG_POTENTIALLYAGGRESSIVE, FLAG_POTENTIALLYAUTODEATHING, FLAG_TROUBLEMAKING
idConverter
CONTROLTIME, EXPIRATION_MILLIS, ONE_REAL_DAY
CODES, isSavableBehavior, parms
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Constructor | Description |
---|---|
Arrest() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
accountForYourself() |
Returns a string describing what this behavior does.
|
boolean |
accuse(Area myArea,
MOB accused,
MOB victim,
java.lang.String[] accusableLaws) |
Issues a LegalWarrant against the accused on behalf of the given
victim, for a crime listed in the list of crime keys.
|
int |
addGetLoyaltyBonus(int delta) |
Changes and/or reads the current loyalty bonus that this
populace has to their rulers.
|
boolean |
addWarrant(Area myArea,
LegalWarrant W) |
Puts a warrant on the official docket so that officers can act
on them.
|
boolean |
addWarrant(Area myArea,
MOB accused,
MOB victim,
java.lang.String crimeLocs,
java.lang.String crimeFlags,
java.lang.String crime,
java.lang.String sentence,
java.lang.String warnMsg) |
Fills out and, if possible, issues a warrant for arrest using the given
crime data.
|
boolean |
addWarrant(Law laws,
LegalWarrant W) |
|
boolean |
aquit(Area myArea,
MOB accused,
java.lang.String[] acquittableLaws) |
Removes the first warrant for the given accused criminal, for any one of
the given list of official crime KEYS.
|
boolean |
arrest(Area myArea,
MOB officer,
MOB accused) |
Assigns an officer and begins the automated arresting procedure.
|
boolean |
canFocusOn(MOB officer,
MOB criminal) |
|
protected int |
canImproveCode() |
|
java.lang.String |
conquestInfo(Area myArea) |
If the legal behavior and area are conquerable by clans or foreign organizations,
this method will return the name of the current controlling clan, and some information
about the state of the conquest, such as control points achieved.
|
int |
controlPoints() |
Returns the number of control points necessary to conquer the area governed
by this legal behavior.
|
void |
debugLogLostConvicts(java.lang.String lead,
LegalWarrant W,
MOB officer) |
|
protected boolean |
defaultModifiableNames() |
|
boolean |
deleteWarrant(Area myArea,
LegalWarrant W) |
Removes the given warrants from the list of issued warrants.
|
void |
dismissOfficer(MOB officer) |
|
void |
executeMsg(Environmental affecting,
CMMsg msg) |
The general message event handler for the object.
|
java.util.List<java.lang.String> |
externalFiles() |
Returns a string list of any external files which
may be required to make this ability work.
|
void |
fileAllWarrants(Law laws,
LegalWarrant W1,
MOB mob) |
|
protected void |
fileArrestResister(Law laws,
Area myArea,
LegalWarrant W) |
|
boolean |
fillOutWarrant(MOB criminalM,
Law laws,
Area myArea,
Environmental victimM,
java.lang.String crimeLocs,
java.lang.String crimeFlags,
java.lang.String crime,
java.lang.String sentence,
java.lang.String warnMsg) |
Inspects the circumstances of, and if necessary, assigns a warrant to
be handled by local law enforcement and judges.
|
Room |
findTheBanishingPoint(MOB mob,
Area myArea,
Law laws,
LegalWarrant W) |
|
Room |
findTheDetentionCenter(MOB mob,
Area myArea,
Law laws,
LegalWarrant W) |
|
Room |
findTheJail(MOB mob,
Area myArea,
Law laws) |
|
Room |
findTheJudge(Law laws,
Area myArea) |
|
double |
finesOwed(MOB mob) |
Returns the amount of base currency owed by the given mob, if any.
|
java.lang.String |
fixCharge(LegalWarrant W) |
|
long |
flags() |
Returns a bitmap made of up Behavior.FLAG_* constant masks which
designates certain aspects about this behavior the rest of the
system may need to know.
|
boolean |
frame(Area myArea,
MOB accused,
MOB framed) |
A method that transfers a warrant out on the accused to a different
framed individual
|
MOB |
getAnyEligibleOfficer(Law laws,
Area myArea,
MOB criminal,
MOB victim) |
|
MOB |
getAWitnessHere(Area myArea,
Room R,
MOB accused) |
|
int |
getBanishmentTicks(Law laws,
LegalWarrant W,
MOB criminal) |
|
protected java.lang.String |
getBanishRoom(Law laws,
LegalWarrant W,
MOB criminal) |
|
int |
getControlPoints(java.lang.String clanID) |
Returns the number of control points earned by the given clanID.
|
java.util.List<MOB> |
getCriminals(Area myArea,
java.lang.String searchStr) |
Searches the list of warrants, returning those criminal mobs whose names
match the search string, and still have legal warrants available for them.
|
protected java.lang.String |
getDetainParm(Law laws,
LegalWarrant W,
MOB criminal) |
|
protected java.lang.String |
getDetainRoom(Law laws,
LegalWarrant W,
MOB criminal) |
|
protected int |
getDetainTime(Law laws,
LegalWarrant W,
MOB criminal) |
|
MOB |
getEligibleOfficer(Law laws,
Area myArea,
MOB criminal,
MOB victim) |
|
MOB |
getEligibleOfficerHere(Law laws,
Area myArea,
Room R,
MOB criminal,
MOB victim) |
|
java.util.Properties |
getExtraLawParms() |
|
java.lang.String |
getExtraLawString() |
|
double |
getFine(Law laws,
LegalWarrant W,
MOB criminal) |
|
protected java.lang.String |
getLawParms() |
|
protected Law |
getLaws(Environmental what,
boolean cleanOnly) |
|
Room |
getReleaseRoom(Law laws,
Area myArea,
MOB criminal,
LegalWarrant W) |
|
java.util.List<LegalWarrant> |
getRelevantWarrants(java.util.List<LegalWarrant> warrants,
LegalWarrant W,
MOB criminal) |
|
java.lang.String |
getResourceKey(java.lang.String lawName) |
|
Room |
getRoom(Area A,
java.lang.String which) |
|
Room |
getRoom(Area A,
java.util.List<java.lang.String> V) |
|
java.util.List<Room> |
getRooms(Area A,
java.util.List<java.lang.String> V) |
|
int |
getShameTicks(Law laws,
LegalWarrant W,
MOB criminal) |
|
MOB |
getTheJudgeHere(Law laws,
Room R) |
|
java.util.List<LegalWarrant> |
getWarrantsOf(Area myArea,
MOB accused) |
Returns a list of all active legal warrants available on the given
mob.
|
MOB |
getWitness(Area A,
MOB accused) |
|
boolean |
hasWarrant(Area myArea,
MOB accused) |
Returns whether the given mob has a valid warrant out for his/her arrest.
|
void |
haveMobReactToLaw(MOB mob,
MOB officer) |
|
int |
highestCrimeAction(Law laws,
LegalWarrant W,
MOB criminal) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
protected boolean |
isAnUltimateAuthorityHere(MOB M,
Law laws) |
|
boolean |
isAnyKindOfOfficer(Law laws,
MOB M) |
|
boolean |
isAnyOfficer(Area myArea,
MOB mob) |
Returns whether the given mob qualifies as an arresting officer of any
sort in the given legal area.
|
boolean |
isBusyWithJustice(Law laws,
MOB M) |
|
protected boolean |
isCrimeSuppressed(java.lang.String crime) |
|
boolean |
isEligibleOfficer(Area myArea,
MOB mob) |
Returns whether the given mob is both an officer of the law, and not
otherwise engaged in an arrest, and so is available to make one
|
boolean |
isEligibleOfficer(Law laws,
MOB M,
Area myArea) |
|
boolean |
isFullyControlled() |
Returns whether this legalbehavior governs an area that is presently
legally stable.
|
boolean |
isJailRoom(Area myArea,
java.util.List<Room> jails) |
Returns whether any of the given Room objects in the jails Vector
is indeed an official Jail room as defined by this legal behavior.
|
boolean |
isJudge(Area myArea,
MOB mob) |
Returns whether the given mob qualifies as the judge in the given legal
area.
|
boolean |
isStillACrime(LegalWarrant W,
boolean debugging) |
Returns whether or not the given legal warrant is still a valid, timely
warrant that can be acted upon by law enforcement.
|
boolean |
isTheJudge(Law laws,
MOB M) |
|
boolean |
isTroubleMaker(MOB M) |
|
boolean |
judgeMe(Law laws,
MOB judge,
MOB officer,
MOB criminal,
LegalWarrant W,
Area A,
boolean debugging) |
|
Law |
legalInfo(Area myArea) |
Returns the set of laws governing the given geographic legal area,
assuming that this LegalBehavior is the behavior governing the same.
|
void |
makePeace(Room R) |
|
void |
modifyAssessedFines(double d,
MOB mob) |
A method to change the amount of base currency currently
listed as fines owed by the given mob.
|
protected void |
processWarrant(Area myArea,
Law laws,
LegalWarrant W,
boolean debugging) |
|
void |
release(Area myArea,
LegalWarrant warrant) |
If the warrant reflects someone in prison, it releases them.
|
java.lang.String |
restOfCharges(Law laws,
MOB mob) |
|
int |
revoltChance() |
The present chance (percent) that the area may collapse into revolt and
remove itself from control.
|
java.lang.String |
rulingOrganization() |
Get the name of the clan that currently rules this area, if applicable.
|
void |
setControlPoints(java.lang.String clanID,
int newControlPoints) |
Modify the number of control points earned by the given clanID.
|
void |
setParms(java.lang.String newParms) |
Sets the raw parameter string for this behavior.
|
boolean |
startTracking(MOB officer,
Room R) |
|
void |
suppressLaws(java.lang.String crime,
java.lang.Object until) |
Suppresses warrants for the given crime until the given
Long timestamp, or Ability is uninvoked, or Quest is
ended.
|
boolean |
testBannedItem(Law laws,
Area myArea,
MOB testMOB,
Item I) |
|
void |
testEntryLaw(Law laws,
Area myArea,
MOB testMOB,
Room R) |
|
protected boolean |
theLawIsEnabled() |
|
boolean |
tick(Tickable ticking,
int tickID) |
this is the method which is called periodically by the threading engine.
|
protected java.lang.String |
trackingModifiers(MOB officer) |
|
void |
unCuff(MOB mob) |
|
boolean |
updateLaw(Area myArea) |
This method notifies the legal behavior that its laws have changed
and need to be updated.
|
canImprove, canImprove, endBehavior, getParms, grantsAggressivenessTo, parmsFormat, registerDefaultQuest, setSavable, startBehavior
copyOf, initializeClass, newInstance
amDestroyed, destroy, isSavable
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
okMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
amDestroyed, canActAtAll, canFreelyBehaveNormal, canImprove, canImprove, compareTo, copyOf, destroy, endBehavior, getBehaversMOB, getBehaversRoom, getCodeNum, getInternalCodeNum, getParms, getSaveStatIndex, getStat, getStatCodes, getTickStatus, grantsAggressivenessTo, I, initializeClass, isSavable, isStat, L, name, newInstance, okMessage, parmsFormat, registerDefaultQuest, sameAs, setSavable, setStat, startBehavior
getTickStatus, name
protected java.lang.String lastAreaName
protected boolean loadAttempt
protected java.util.Map<MOB,java.lang.Double> finesAssessed
protected volatile Room lastBanishR
protected java.util.Map<java.lang.String,java.lang.Object> suppressedCrimes
protected java.util.Map<java.lang.String,java.lang.Boolean> bannedItemCache
protected java.util.Set<java.lang.String> bannedMOBCheck
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdBehavior
public long flags()
Behavior
flags
in interface Behavior
flags
in class StdBehavior
protected int canImproveCode()
canImproveCode
in class StdBehavior
public boolean isFullyControlled()
LegalBehavior
isFullyControlled
in interface LegalBehavior
public int addGetLoyaltyBonus(int delta)
LegalBehavior
addGetLoyaltyBonus
in interface LegalBehavior
delta
- 0, or an amount to change the loyalty bonus byprotected java.lang.String getLawParms()
public final java.lang.String getExtraLawString()
public final java.util.Properties getExtraLawParms()
public java.lang.String accountForYourself()
Behavior
accountForYourself
in interface Behavior
accountForYourself
in class StdBehavior
public void debugLogLostConvicts(java.lang.String lead, LegalWarrant W, MOB officer)
public boolean frame(Area myArea, MOB accused, MOB framed)
LegalBehavior
frame
in interface LegalBehavior
myArea
- the geographical legal areaaccused
- the mob with actual warrants out on him/herframed
- the person to transfer the first warrant to.public boolean arrest(Area myArea, MOB officer, MOB accused)
LegalBehavior
arrest
in interface LegalBehavior
myArea
- the geographic legal areaofficer
- the mob to assign as the arresting officeraccused
- the mob to arrestpublic int revoltChance()
LegalBehavior
revoltChance
in interface LegalBehavior
public Law legalInfo(Area myArea)
LegalBehavior
legalInfo
in interface LegalBehavior
myArea
- the geographic legal areaLaw
public boolean isEligibleOfficer(Area myArea, MOB mob)
LegalBehavior
isEligibleOfficer
in interface LegalBehavior
myArea
- the geographic legal areamob
- the pc/npc to testpublic boolean hasWarrant(Area myArea, MOB accused)
LegalBehavior
hasWarrant
in interface LegalBehavior
myArea
- the geographic legal areaaccused
- the mob to testpublic boolean isAnyOfficer(Area myArea, MOB mob)
LegalBehavior
isAnyOfficer
in interface LegalBehavior
myArea
- the geographic legal areamob
- the mob to test for officerhoodpublic boolean isJudge(Area myArea, MOB mob)
LegalBehavior
isJudge
in interface LegalBehavior
myArea
- the geographic legal areamob
- the mob to test for judgehoodpublic void modifyAssessedFines(double d, MOB mob)
LegalBehavior
modifyAssessedFines
in interface LegalBehavior
d
- the amount of base currency the mob owesmob
- the mob who owes money to the statepublic double finesOwed(MOB mob)
LegalBehavior
finesOwed
in interface LegalBehavior
mob
- the mob who might owe moneypublic boolean updateLaw(Area myArea)
LegalBehavior
updateLaw
in interface LegalBehavior
myArea
- the geographic legal areapublic java.lang.String rulingOrganization()
LegalBehavior
rulingOrganization
in interface LegalBehavior
Clan
public java.lang.String conquestInfo(Area myArea)
LegalBehavior
conquestInfo
in interface LegalBehavior
myArea
- the geographic legal areapublic int controlPoints()
LegalBehavior
controlPoints
in interface LegalBehavior
LegalBehavior.setControlPoints(String, int)
,
LegalBehavior.getControlPoints(String)
public void setControlPoints(java.lang.String clanID, int newControlPoints)
LegalBehavior
setControlPoints
in interface LegalBehavior
clanID
- the clan to assign the control points tonewControlPoints
- the number of points to assignLegalBehavior.controlPoints()
,
LegalBehavior.getControlPoints(String)
public int getControlPoints(java.lang.String clanID)
LegalBehavior
getControlPoints
in interface LegalBehavior
clanID
- the clan to assign the control points toLegalBehavior.controlPoints()
,
LegalBehavior.setControlPoints(String, int)
public java.util.List<MOB> getCriminals(Area myArea, java.lang.String searchStr)
LegalBehavior
getCriminals
in interface LegalBehavior
myArea
- the geographic legal areasearchStr
- the name/search string to useMOB
public java.util.List<LegalWarrant> getWarrantsOf(Area myArea, MOB accused)
LegalBehavior
getWarrantsOf
in interface LegalBehavior
myArea
- the geographic legal areaaccused
- the mob to look for warrants forLegalWarrant
protected boolean isCrimeSuppressed(java.lang.String crime)
public boolean addWarrant(Law laws, LegalWarrant W)
public boolean addWarrant(Area myArea, LegalWarrant W)
LegalBehavior
addWarrant
in interface LegalBehavior
myArea
- the geographic legal areaW
- the LegalWarrant to put on the docketLegalBehavior.fillOutWarrant(MOB, Law, Area, Environmental, String, String, String, String, String)
,
LegalBehavior.addWarrant(Area, MOB, MOB, String, String, String, String, String)
,
LegalWarrant
public boolean addWarrant(Area myArea, MOB accused, MOB victim, java.lang.String crimeLocs, java.lang.String crimeFlags, java.lang.String crime, java.lang.String sentence, java.lang.String warnMsg)
LegalBehavior
addWarrant
in interface LegalBehavior
myArea
- the geographic legal areaaccused
- the accused charactervictim
- the victim of a crime, if anycrimeLocs
- string of location flags, e.g. !indoors !home keyword !keywordcrimeFlags
- string of crime situation flags, e.g. !recently !combatcrime
- string description of the crime, e.g. robbing T-NAMEsentence
- string sentence action, e.g. warn, parole1, jail1, deathwarnMsg
- string the officer will say to explain the seriousness of the crimeLegalBehavior.fillOutWarrant(MOB, Law, Area, Environmental, String, String, String, String, String)
public boolean deleteWarrant(Area myArea, LegalWarrant W)
LegalBehavior
deleteWarrant
in interface LegalBehavior
myArea
- the geographic legal areaW
- the legal warrant to removeLegalWarrant
public boolean aquit(Area myArea, MOB accused, java.lang.String[] acquittableLaws)
LegalBehavior
aquit
in interface LegalBehavior
myArea
- the geographic legal areaaccused
- the mob possible accused of one of the crimesacquittableLaws
- the list of crime keys.public boolean isJailRoom(Area myArea, java.util.List<Room> jails)
LegalBehavior
isJailRoom
in interface LegalBehavior
myArea
- the geographic legal areajails
- a list of Room objects to inspectRoom
public boolean accuse(Area myArea, MOB accused, MOB victim, java.lang.String[] accusableLaws)
LegalBehavior
accuse
in interface LegalBehavior
myArea
- the geographic legal areaaccused
- the accused mobvictim
- the victim of the crimeaccusableLaws
- a crime key, such as TAXEVASIONLegalBehavior.fillOutWarrant(MOB, Law, Area, Environmental, String, String, String, String, String)
public void setParms(java.lang.String newParms)
Behavior
setParms
in interface Behavior
setParms
in class StdBehavior
newParms
- the parameter string for this behaviorBehavior.getParms()
protected boolean defaultModifiableNames()
public void suppressLaws(java.lang.String crime, java.lang.Object until)
LegalBehavior
suppressLaws
in interface LegalBehavior
crime
- the crime to suppressuntil
- the Object expiration for the suppressionpublic java.util.List<java.lang.String> externalFiles()
Behavior
externalFiles
in interface Behavior
externalFiles
in class StdBehavior
Behavior.setParms(String)
public final java.lang.String getResourceKey(java.lang.String lawName)
protected Law getLaws(Environmental what, boolean cleanOnly)
public void unCuff(MOB mob)
public void dismissOfficer(MOB officer)
public MOB getEligibleOfficerHere(Law laws, Area myArea, Room R, MOB criminal, MOB victim)
public MOB getAnyEligibleOfficer(Law laws, Area myArea, MOB criminal, MOB victim)
public boolean isStillACrime(LegalWarrant W, boolean debugging)
LegalBehavior
isStillACrime
in interface LegalBehavior
W
- the legal warrant to inspectdebugging
- whether debug information should be sent to the logLegalWarrant
public java.util.List<LegalWarrant> getRelevantWarrants(java.util.List<LegalWarrant> warrants, LegalWarrant W, MOB criminal)
public double getFine(Law laws, LegalWarrant W, MOB criminal)
public int getBanishmentTicks(Law laws, LegalWarrant W, MOB criminal)
public int getShameTicks(Law laws, LegalWarrant W, MOB criminal)
protected java.lang.String getDetainParm(Law laws, LegalWarrant W, MOB criminal)
protected java.lang.String getBanishRoom(Law laws, LegalWarrant W, MOB criminal)
protected java.lang.String getDetainRoom(Law laws, LegalWarrant W, MOB criminal)
protected int getDetainTime(Law laws, LegalWarrant W, MOB criminal)
public int highestCrimeAction(Law laws, LegalWarrant W, MOB criminal)
public java.lang.String fixCharge(LegalWarrant W)
public void makePeace(Room R)
protected java.lang.String trackingModifiers(MOB officer)
public Room getReleaseRoom(Law laws, Area myArea, MOB criminal, LegalWarrant W)
public boolean isTroubleMaker(MOB M)
public void fileAllWarrants(Law laws, LegalWarrant W1, MOB mob)
public Room findTheDetentionCenter(MOB mob, Area myArea, Law laws, LegalWarrant W)
public Room findTheBanishingPoint(MOB mob, Area myArea, Law laws, LegalWarrant W)
public boolean judgeMe(Law laws, MOB judge, MOB officer, MOB criminal, LegalWarrant W, Area A, boolean debugging)
public boolean fillOutWarrant(MOB criminalM, Law laws, Area myArea, Environmental victimM, java.lang.String crimeLocs, java.lang.String crimeFlags, java.lang.String crime, java.lang.String sentence, java.lang.String warnMsg)
LegalBehavior
fillOutWarrant
in interface LegalBehavior
criminalM
- the accused characterlaws
- the system of laws to use as a basismyArea
- the geographical domain that the laws apply tovictimM
- the victim of a crime, if anycrimeLocs
- string of location flags, e.g. !indoors !home keyword !keywordcrimeFlags
- string of crime situation flags, e.g. !recently !combatcrime
- string description of the crime, e.g. robbing T-NAMEsentence
- string sentence action, e.g. warn, parole1, jail1, deathwarnMsg
- string the officer will say to explain the seriousness of the crimeLegalBehavior.accuse(Area, MOB, MOB, String[])
,
Law
,
Law.PUNISHMENTMASK_DESCS
protected boolean theLawIsEnabled()
public void executeMsg(Environmental affecting, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class StdBehavior
affecting
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class StdBehavior
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
protected void fileArrestResister(Law laws, Area myArea, LegalWarrant W)
protected void processWarrant(Area myArea, Law laws, LegalWarrant W, boolean debugging)
public void release(Area myArea, LegalWarrant warrant)
LegalBehavior
release
in interface LegalBehavior
myArea
- the legal areawarrant
- the warrant to excuse