|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Behaviors.StdBehavior
com.planet_ink.coffee_mud.Behaviors.ActiveTicker
com.planet_ink.coffee_mud.Behaviors.MOBHunter
public class MOBHunter
Title: False Realities Flavored CoffeeMUD
Description: The False Realities Version of CoffeeMUD
Copyright: Copyright (c) 2003 Jeremy Vyska
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Company: http://www.falserealities.com
| Field Summary | |
|---|---|
protected boolean |
debug
|
| Fields inherited from class com.planet_ink.coffee_mud.Behaviors.ActiveTicker |
|---|
chance, maxTicks, minTicks, tickDown |
| Fields inherited from class com.planet_ink.coffee_mud.Behaviors.StdBehavior |
|---|
CODES, isSavableBehavior, parms |
| Fields inherited from interface com.planet_ink.coffee_mud.Behaviors.interfaces.Behavior |
|---|
CAN_AREAS, CAN_EXITS, CAN_ITEMS, CAN_MOBS, CAN_ROOMS, FLAG_LEGALBEHAVIOR, FLAG_MOBILITY, FLAG_POTENTIALLYAGGRESSIVE, FLAG_TROUBLEMAKING |
| Constructor Summary | |
|---|---|
MOBHunter()
|
|
| Method Summary | |
|---|---|
protected int |
canImproveCode()
|
protected MOB |
findPrey(MOB mob)
|
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. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
protected boolean |
isHunting(MOB mob)
|
void |
setParms(java.lang.String newParms)
Sets the raw parameter string for this behavior. |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
| Methods inherited from class com.planet_ink.coffee_mud.Behaviors.ActiveTicker |
|---|
canAct, getParmsNoTicks, tickReset |
| Methods inherited from class com.planet_ink.coffee_mud.Behaviors.StdBehavior |
|---|
canActAtAll, canFreelyBehaveNormal, canImprove, canImprove, compareTo, copyOf, executeMsg, externalFiles, finalize, getBehaversMOB, getBehaversRoom, getCodeNum, getParms, getSaveStatIndex, getStat, getStatCodes, getTickStatus, grantsAggressivenessTo, initializeClass, isSavable, isStat, modifyBehavior, name, newInstance, okMessage, parmsFormat, registerDefaultQuest, sameAs, setSavable, setStat, startBehavior |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean debug
| Constructor Detail |
|---|
public MOBHunter()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class ActiveTickerprotected int canImproveCode()
canImproveCode in class ActiveTickerpublic long flags()
Behavior
flags in interface Behaviorflags in class StdBehaviorprotected boolean isHunting(MOB mob)
public void setParms(java.lang.String newParms)
Behavior
setParms in interface BehaviorsetParms in class ActiveTickernewParms - the parameter string for this behaviorBehavior.getParms()protected MOB findPrey(MOB mob)
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickabletick in class StdBehaviorticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGroup
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||