Affectable, Behavable, java.lang.Cloneable, CMObject, java.lang.Comparable<CMObject>, Contingent, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, StatsAffecting, TickableDeity, MOB, NavigableItem, SiegableItemAlligator, AngryCitizen, Ape, Assassin, Beaver, Bee, BlackBear, BlackDragon, BlueDragon, BrassDragon, BronzeDragon, BrownBear, BrownSnake, Buck, Buffalo, Bugbear, Bull, Cat, Centaur, Centipede, Cheetah, Chicken, Chimp, Citizen, Cobra, CombatDummy, CommonBat, CopperDragon, Cougar, Cow, Coyote, Crocodile, Deer, DireWolf, Doe, Dog, Dolphin, Doppleganger, Dragon, DrowElf, DrowPriestess, DrowWarrior, DrowWizard, Duck, Elephant, Falcon, FireGiant, FlyingInsect, Fox, Frog, FrostGiant, GardenSnake, GenAuctioneer, GenBanker, GenBoat, GenCannon, GenCaravan, GenCastle, GenClanCastle, GenCow, GenDeity, GenHorse, GenLibrarian, GenMob, GenNavigableBoardable, GenPostman, GenRideable, GenRideableUndead, GenSailingShip, GenShopkeeper, GenSiegableBoardable, GenSiegeWeapon, GenUndead, GiantBat, GiantScorpion, Gnoll, Goat, GoatDoe, Goblin, GoldDragon, Gorilla, GreenDragon, Hawk, HeavenlyServent, HillGiant, Hornet, Horse, InvisibleStalker, Jaguar, Kitten, LargeBat, Lion, Lizard, LizardMan, LizardManShaman, Minotaur, Monkey, MountainLion, Mouse, Naga, Ogre, Orc, Owl, Panther, Parakeet, Pegasus, PegasusGreater, Penguin, Pig, Puppy, Python, Rabbit, Rat, Rattlesnake, Raven, RedDragon, Rooster, Scorpion, Seal, Shark, Sheep, SilverDragon, Skeleton, Snake, Spider, Squirrel, StdAuctioneer, StdBanker, StdDeity, StdFactoryMOB, StdLibrarian, StdMOB, StdMobWrapper, StdNavigableBoardable, StdPostman, StdRideable, StdRideableWrapper, StdShopKeeper, StdSiegableBoardable, StdSiegeWeapon, StoneGiant, StoneGolem, Swordfish, Teacher, Tiger, Toad, Troll, Turtle, UmberHulk, Undead, Vulture, Walrus, Whale, WhiteBear, WhiteDragon, WildEagle, Wolf, Wolverine, Worm, Wyvern, Zombiepublic interface Combatant extends PhysicalAgent
idConverterSTATUS_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| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | amDead() | Returns whether this combatant is dead and presumably waiting for rejuv. | 
| PhysicalAgent | getCombatant() | If this mob is in combat, this returns the mob that this mob is
 targeting. | 
| int | getDirectionToTarget() | Gets the compass direction between this combatant and the current combat
 victim. | 
| java.lang.String | healthText(MOB viewer) | Returns the friendly viewable description of this mobs health status,
 from the given viewer mobs point of view. | 
| boolean | isInCombat() | Returns whether this combatant is in an active combat state | 
| Item | killMeDead(boolean createBody) | Puts this combatant in a dead state, removes all temporary effects,
 creates a corpse, ends combat, and sends mob players to their graveyard. | 
| void | makePeace(boolean includePlayerFollowers) | Clears the combat state between this combatant and their
 target, clears the targets combat state, as well as
 that of any followers of this combatant. | 
| boolean | mayIFight(PhysicalAgent victim) | Returns whether this combatant is both permitted to attack the
 given combatant, and that both this combatant and the potential target
 are alive. | 
| boolean | mayPhysicallyAttack(PhysicalAgent victim) | Returns whether this combatant is permitted to attack the
 given combatant, both this combatant and the potential target are alive,
 both the combatant and the target are confirmed to be the same
 place. | 
| int | rangeToTarget() | Gets the distance between this combatant and the current combat
 victim. | 
| void | setCombatant(PhysicalAgent other) | Sets the mob that this mob is targeting for combat, which
 either puts them into, or clears their combat state. | 
| void | setRangeToTarget(int newRange) | Sets the distance between this combatant and the current combat
 victim. | 
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStatsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, ID, initializeClass, newInstanceamDestroyed, destroy, isSavable, setSavabledescription, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, textexpirationDate, setExpirationDategetSaveStatIndex, getStat, getStatCodes, isStat, setStatexecuteMsg, okMessagedescription, displayText, genericName, nameaffectCharState, affectCharStats, affectPhyStatsgetTickStatus, name, tickboolean isInCombat()
MOB.getVictim(), 
MOB.setVictim(MOB), 
setCombatant(PhysicalAgent), 
getCombatant(), 
makePeace(boolean), 
setRangeToTarget(int), 
mayIFight(PhysicalAgent)void setRangeToTarget(int newRange)
newRange - the range from this combatant to their targetMOB.getVictim(), 
setCombatant(PhysicalAgent), 
getCombatant(), 
rangeToTarget(), 
mayIFight(PhysicalAgent)int rangeToTarget()
MOB.getVictim(), 
setCombatant(PhysicalAgent), 
getCombatant(), 
setRangeToTarget(int), 
mayIFight(PhysicalAgent)int getDirectionToTarget()
MOB.getVictim(), 
setCombatant(PhysicalAgent), 
getCombatant(), 
setRangeToTarget(int), 
mayIFight(PhysicalAgent)boolean mayPhysicallyAttack(PhysicalAgent victim)
victim - the potential combat targetMOB.getVictim(), 
setCombatant(PhysicalAgent), 
getCombatant(), 
setRangeToTarget(int), 
mayPhysicallyAttack(PhysicalAgent)boolean mayIFight(PhysicalAgent victim)
victim - the potential combat targetMOB.getVictim(), 
setCombatant(PhysicalAgent), 
getCombatant(), 
setRangeToTarget(int), 
mayPhysicallyAttack(PhysicalAgent)void makePeace(boolean includePlayerFollowers)
includePlayerFollowers - false to apply only to npc followers, true for npc and playerisInCombat(), 
MOB.getVictim(), 
MOB.setVictim(MOB), 
setCombatant(PhysicalAgent), 
getCombatant(), 
setRangeToTarget(int), 
mayIFight(PhysicalAgent)PhysicalAgent getCombatant()
isInCombat(), 
setCombatant(PhysicalAgent), 
makePeace(boolean), 
setRangeToTarget(int), 
mayIFight(PhysicalAgent)void setCombatant(PhysicalAgent other)
other - the combat target, or null for a peace stateisInCombat(), 
getCombatant(), 
makePeace(boolean), 
setRangeToTarget(int), 
mayIFight(PhysicalAgent)java.lang.String healthText(MOB viewer)
viewer - the mob viewing this mobboolean amDead()
killMeDead(boolean), 
MOB.bringToLife(Room, boolean), 
MOB.removeFromGame(boolean, boolean)Item killMeDead(boolean createBody)
createBody - true to create a corpse, false otherwiseamDead(), 
MOB.bringToLife(Room, boolean), 
MOB.removeFromGame(boolean, boolean)