AbilityContainer
, Affectable
, Behavable
, CMObject
, Combatant
, Contingent
, DBIdentifiable
, Environmental
, Expireable
, FactionMember
, Followable<MOB>
, ItemCollection
, ItemPossessor
, Modifiable
, MsgListener
, MUDCmdProcessor
, Physical
, PhysicalAgent
, Rider
, StatsAffecting
, Tattooable
, Tickable
, MOB
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
BlackDragon
, BlueDragon
, BrassDragon
, BronzeDragon
, CopperDragon
, GoldDragon
, GreenDragon
, RedDragon
, SilverDragon
, WhiteDragon
public class Dragon extends StdMOB
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move
MOB.Attrib
StdMOB.ApplyAffectCharState<T extends StatsAffecting>, StdMOB.ApplyAffectCharStats<T extends StatsAffecting>, StdMOB.ApplyRecAffectPhyStats<T extends StatsAffecting>
Modifier and Type | Field | Description |
---|---|---|
static int |
ADULT |
|
static int |
ANCIENT |
|
protected int |
birthAge |
|
protected int |
birthColor |
|
static int |
BLACK |
|
static int |
BLUE |
|
static int |
BRASS |
|
protected int |
breatheDown |
|
static int |
BRONZE |
|
static int |
COPPER |
|
protected int |
digestDown |
|
protected Ability |
dragonbreath |
|
static int |
DRAGONCOLORCOUNT |
|
static int |
GOLD |
|
static int |
GREEN |
|
static int |
HATCHLING |
|
protected Room |
myStomachR |
|
static int |
OLD |
|
static int |
RED |
|
static int |
SILVER |
|
static int |
SUBADULT |
|
protected int |
swallowDown |
|
static int |
VERYOLD |
|
static int |
VERYYOUNG |
|
static int |
WHITE |
|
static int |
YOUNG |
|
static int |
YOUNGADULT |
idConverter
AGE_MILLIS_THRESHOLD, END_SHEATH_TIME, START_SHEATH_TIME
METAFLAG_AS, METAFLAG_ASMESSAGE, METAFLAG_FORCED, METAFLAG_INORDER, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_QUIETLY, METAFLAG_REVERSED, METAFLAG_SNOOPED
_name, abilitys, abilityUseCache, abilityUseTrig, affectCharState, affectCharStats, affectPhyStats, affects, ageMinutes, amDead, amDestroyed, amFollowing, atRange, attributesBitmap, baseCharStats, basePhyStats, baseState, behaviors, cachedImageName, charStats, clanAffects, clans, CODES, commandQue, curState, databaseID, description, displayText, experience, expertises, factions, followers, inventory, kickFlag, lastLocation, liegeID, location, maxState, me, miscText, money, moneyVariation, mySession, peaceTime, phyStats, playerStats, possHeldItem, possStartRoom, possWieldedItem, practices, questPoint, racialAffects, rawImageName, recoverAffectP, recoverTickCter, removeFromGame, riding, scripts, soulMate, speedAdj, tattoos, tickAgeCounter, tickStatus, trains, triggerer, validChkCounter, victim, wimpHitPoint, xtraValues
Constructor | Description |
---|---|
Dragon() |
|
Dragon(int colorValue) |
|
Dragon(int colorValue,
int ageValue) |
Modifier and Type | Method | Description |
---|---|---|
protected static int |
determineAge() |
|
protected boolean |
digestTastyMorsels() |
|
protected int |
DragonAge() |
|
protected int |
DragonColor() |
|
protected java.lang.StringBuffer |
getAgeDescription(int draconianAge) |
|
protected java.lang.StringBuffer |
getColorDescription(int colorVal) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
DeadBody |
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 |
recoverCharStats() |
Causes this mob to recalculate its current char stats by copying the base stats
over and then calling all equipment and spell effects to modify them.
|
void |
recoverPhyStats() |
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to
all surrounding objects with affectPhyStats(Environmental,PhyStats) method.
|
void |
setupDragonIfNecessary() |
|
boolean |
tick(Tickable ticking,
int tickID) |
this is the method which is called periodically by the threading engine.
|
protected boolean |
trySwallowWhole() |
|
protected boolean |
useBreathWeapon() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abilities, actions, addAbility, addBehavior, addEffect, addExpertise, addFaction, addFollower, addItem, addItem, addNonUninvokableEffect, addPriorityEffect, addScript, addTattoo, addTattoo, addTattoo, adjustFaction, affectCharState, affectCharStats, affectPhyStats, allAbilities, amActive, amDead, amDestroyed, amFollowing, amUltimatelyFollowing, baseCharStats, basePhyStats, baseState, baseWeight, behaviors, bringToLife, bringToLife, calculateActionCost, canSaveDatabaseID, charStats, checkCommandCancel, clanEffects, clans, clearCommandQueue, cloneFix, commandQueSize, compareTo, confirmLocation, copyFactions, copyOf, counItemsWornAt, curState, databaseID, delAbility, delAllAbilities, delAllBehaviors, delAllEffects, delAllExpertises, delAllItems, delAllScripts, delBehavior, delEffect, delExpertise, delFollower, delItem, delScript, delTattoo, delTattoo, dequeCommand, description, description, destroy, displayText, displayText, dispossess, doCommand, doCommand, eachBehavior, eachEffect, eachItem, eachScript, effects, enqueCommand, enqueCommands, executeMsg, expertises, expirationDate, factions, fetchAbility, fetchAbility, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchExpertise, fetchFaction, fetchFactionData, fetchFactionRanges, fetchFirstWornItem, fetchFollower, fetchFollower, fetchFollowerOrder, fetchFromInventory, fetchHeldItem, fetchItem, fetchRandomAbility, fetchScript, fetchWieldedItem, fetchWornItems, findAbility, findItem, findItem, findItems, findItems, findTattoo, findTattooStartsWith, fixChannelColors, flagVariableEq, followers, freeWearPositions, genericName, getAbilityUsageCache, getAgeMinutes, getAttributesBitmap, getClanRole, getCodeNum, getCombatant, getContextName, getDirectionToTarget, getExperience, getExpNeededDelevel, getExpNeededLevel, getExpNextLevel, getExpPrevLevel, getFactionListing, getGroupMembers, getGroupMembersAndRideables, getItem, getLiegeID, getMoney, getMoneyVariation, getNaturalWeapon, getPeaceTime, getPractices, getQuestPoint, getRandomItem, getRideBuddies, getSaveStatIndex, getStartRoom, getStat, getStatCodes, getTickStatus, getTopCommand, getTrains, getVictim, getWearPositions, getWimpHitPoint, hasFaction, hasOnlyGoldInInventory, healthText, image, initializeClass, isAttributeSet, isContent, isEitherOfUsDead, isFollowedBy, isGeneric, isInCombat, isMarriedToLiege, isMine, isMonster, isPermissableToFight, isPlayer, isPossessing, isRacialAbility, isSavable, isStat, items, L, lastTickedDateTime, location, makePeace, maxCarry, maxFollowers, maxItems, maxRange, maxState, mayIFight, mayPhysicallyAttack, minRange, miscTextFormat, moveItemTo, moveItemTo, name, name, Name, newInstance, numAbilities, numAllAbilities, numAllEffects, numBehaviors, numEffects, numFollowers, numItems, numScripts, okMessage, personalEffects, phyStats, playerStats, prequeCommand, prequeCommands, racialEffects, rangeToTarget, rawImage, recoverMaxState, removeFaction, removeFromGame, resetToMaxState, riding, sameAs, scripts, session, setActions, setAgeMinutes, setAttribute, setAttributesBitmap, setBaseCharStats, setBasePhyStats, setBaseState, setClan, setCombatant, setDatabaseID, setDescription, setDestroyed, setDisplayText, setExperience, setExpirationDate, setFollowing, setImage, setLiegeID, setLocation, setMiscText, setMoney, setMoneyVariation, setName, setPlayerStats, setPractices, setQuestPoint, setRangeToTarget, setRiding, setSavable, setSession, setSoulMate, setStartRoom, setStat, setTrains, setTriggerer, setVictim, setWimpHitPoint, soulMate, tattoos, tell, tell, text, titledName, titledName, totalFollowers, triggerer, willFollowOrdersOf
protected int breatheDown
protected int swallowDown
protected int digestDown
protected int birthColor
protected int birthAge
protected Ability dragonbreath
public static final int HATCHLING
public static final int VERYYOUNG
public static final int YOUNG
public static final int SUBADULT
public static final int YOUNGADULT
public static final int ADULT
public static final int OLD
public static final int VERYOLD
public static final int ANCIENT
public static final int DRAGONCOLORCOUNT
public static final int WHITE
public static final int BLACK
public static final int BLUE
public static final int GREEN
public static final int RED
public static final int BRASS
public static final int COPPER
public static final int BRONZE
public static final int SILVER
public static final int GOLD
protected Room myStomachR
public Dragon()
public Dragon(int colorValue)
public Dragon(int colorValue, int ageValue)
public java.lang.String ID()
CMObject
protected int DragonColor()
protected int DragonAge()
public void setupDragonIfNecessary()
protected static int determineAge()
protected java.lang.StringBuffer getAgeDescription(int draconianAge)
protected java.lang.StringBuffer getColorDescription(int colorVal)
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class StdMOB
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
protected boolean useBreathWeapon()
protected boolean trySwallowWhole()
public void recoverPhyStats()
Affectable
recoverPhyStats
in interface Affectable
recoverPhyStats
in class StdMOB
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.addEffect(Ability)
,
Behavable.addBehavior(Behavior)
,
PhyStats
public void recoverCharStats()
MOB
recoverCharStats
in interface MOB
recoverCharStats
in class StdMOB
MOB.baseCharStats()
,
MOB.charStats()
,
MOB.setBaseCharStats(CharStats)
protected boolean digestTastyMorsels()
public DeadBody killMeDead(boolean createBody)
Combatant
killMeDead
in interface Combatant
killMeDead
in class StdMOB
createBody
- true to create a corpse, false otherwiseCombatant.amDead()
,
MOB.bringToLife(Room, boolean)
,
MOB.removeFromGame(boolean, boolean)