com.planet_ink.coffee_mud.MOBS
Class Dragon

java.lang.Object
  extended by com.planet_ink.coffee_mud.MOBS.StdMOB
      extended by com.planet_ink.coffee_mud.MOBS.Dragon
All Implemented Interfaces:
Behavable, CMModifiable, CMObject, Environmental, MsgListener, Rider, StatsAffecting, Tickable, MOB, java.lang.Cloneable, java.lang.Comparable<CMObject>
Direct Known Subclasses:
BlackDragon, BlueDragon, BrassDragon, BronzeDragon, CopperDragon, GoldDragon, GreenDragon, RedDragon, SilverDragon, WhiteDragon

public class Dragon
extends StdMOB


Field Summary
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
           
static int DRAGONCOLORCOUNT
           
static int GOLD
           
static int GREEN
           
static int HATCHLING
           
static int OLD
           
static int RED
           
static int SILVER
           
protected  Room Stomach
           
static int SUBADULT
           
protected  int swallowDown
           
static int VERYOLD
           
static int VERYYOUNG
           
static int WHITE
           
static int YOUNG
           
static int YOUNGADULT
           
 
Fields inherited from class com.planet_ink.coffee_mud.MOBS.StdMOB
abilities, affects, AgeHours, Alignment, amDead, amDestroyed, amFollowing, atRange, attributesBitmap, baseCharStats, baseEnvStats, baseState, behaviors, charStats, clanID, clanRole, CODES, commandQue, curState, databaseID, DeityIndex, description, displayText, envStats, Experience, expertises, factions, followers, imageName, imMobile, inventory, kickFlag, lastLocation, LiegeID, location, maxState, miscText, Money, moneyVariation, mySession, peaceTime, playerStats, pleaseDestroy, Practices, QuestPoint, riding, scripts, soulMate, startRoomPossibly, tattoos, tickCounter, tickStatus, Trains, Username, victim, WimpHitPoint, WorshipCharID, xtraValues
 
Fields inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB
ATT_ANSI, ATT_AUTOASSIST, ATT_AUTODRAW, ATT_AUTOEXITS, ATT_AUTOFORWARD, ATT_AUTOGOLD, ATT_AUTOGUARD, ATT_AUTOIMPROVE, ATT_AUTOLOOT, ATT_AUTOMELEE, ATT_AUTONOTIFY, ATT_AUTORUN, ATT_AUTOWEATHER, ATT_BRIEF, ATT_COMPRESS, ATT_DAILYMESSAGE, ATT_MXP, ATT_NOFOLLOW, ATT_NOTEACH, ATT_PLAYERKILL, ATT_QUIET, ATT_SOUND, ATT_SYSOPMSGS, AUTODESC, AUTOREV, SHEATH_TIME
 
Constructor Summary
Dragon()
           
Dragon(int colorValue)
           
Dragon(int colorValue, int ageValue)
           
 
Method Summary
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)
           
 void recoverCharStats()
           
 void setupDragon(int colorValue, int ageValue)
           
 boolean tick(Tickable ticking, int tickID)
          this is the method which is called periodically by the threading engine.
protected  boolean trySwallowWhole()
           
protected  boolean useBreathWeapon()
           
 
Methods inherited from class com.planet_ink.coffee_mud.MOBS.StdMOB
actions, addAbility, addBehavior, addEffect, addExpertise, addFaction, addFollower, addInventory, addNonUninvokableEffect, addPriorityEffect, addScript, addTattoo, adjustedArmor, adjustedAttackBonus, adjustedDamage, adjustFaction, affectCharState, affectCharStats, affectEnvStats, amActive, amDead, amDestroyed, amFollowing, amUltimatelyFollowing, baseCharStats, baseEnvStats, baseState, baseWeight, bringToLife, bringToLife, calculateTickDelay, charStats, cloneEffects, cloneFix, commandQueSize, compareTo, confirmWearability, copyFactions, copyOf, curState, databaseID, delAbility, delBehavior, delEffect, delExpertise, delFollower, delInventory, delScript, delTattoo, dequeCommand, description, destroy, displayName, displayText, displayText, dispossess, doCommand, doCommand, enqueCommand, envStats, executeMsg, expirationDate, fetchAbility, fetchAbility, fetchBehavior, fetchBehavior, fetchCarried, fetchEffect, fetchEffect, fetchExpertise, fetchExpertise, fetchFaction, fetchFactionRanges, fetchFactions, fetchFirstWornItem, fetchFollower, fetchFollower, fetchFollowerOrder, fetchFromInventory, fetchInventory, fetchInventory, fetchInventory, fetchScript, fetchTattoo, fetchTattoo, fetchWieldedItem, fetchWornItem, fetchWornItems, finalize, findAbility, flagVariableEq, freeWearPositions, genericName, getAgeHours, getBitmap, getClanID, getClanRole, getCodeNum, getExperience, getExpNeededDelevel, getExpNeededLevel, getExpNextLevel, getExpPrevLevel, getFactionListing, getGroupMembers, getLiegeID, getMoney, getMoneyVariation, getMyDeity, getPractices, getQuestPoint, getRideBuddies, getSaveStatIndex, getStartRoom, getStat, getStatCodes, getTickStatus, getTrains, getVictim, getWearPositions, getWimpHitPoint, getWorshipCharID, giveItem, hasFaction, hasOnlyGoldInInventory, healthText, image, initializeClass, inventorySize, isFollowedBy, isGeneric, isInCombat, isMarriedToLiege, isMine, isMonster, isPossessing, isStat, lastTickedDateTime, location, makePeace, maxCarry, maxFollowers, maxItems, maxRange, maxRange, maxState, mayIFight, mayPhysicallyAttack, minRange, minRange, miscTextFormat, myNaturalWeapon, name, Name, newInstance, numAbilities, numAllEffects, numBehaviors, numEffects, numExpertises, numFollowers, numLearnedAbilities, numScripts, numTattoos, okMessage, peaceTime, playerStats, prequeCommand, processVariableEquipment, rangeToTarget, rawImage, recoverEnvStats, recoverMaxState, removeFaction, removeFromGame, resetToMaxState, resetVectors, riding, sameAs, savable, session, setActions, setAgeHours, setAtRange, setBaseCharStats, setBaseEnvStats, setBaseState, setBitmap, setClanID, setClanRole, setDatabaseID, setDescription, setDisplayText, setExperience, setExpirationDate, setExpNextLevel, setFollowing, setImage, setLiegeID, setLocation, setMiscText, setMoney, setMoneyVariation, setName, setPlayerStats, setPractices, setQuestPoint, setRiding, setSession, setSoulMate, setStartRoom, setStat, setTrains, setVictim, setWimpHitPoint, setWorshipCharID, soulMate, tell, tell, text, titledName, totalFollowers, uniqueExpertises, willFollowOrdersOf
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

breatheDown

protected int breatheDown

swallowDown

protected int swallowDown

digestDown

protected int digestDown

birthColor

protected int birthColor

birthAge

protected int birthAge

HATCHLING

public static final int HATCHLING
See Also:
Constant Field Values

VERYYOUNG

public static final int VERYYOUNG
See Also:
Constant Field Values

YOUNG

public static final int YOUNG
See Also:
Constant Field Values

SUBADULT

public static final int SUBADULT
See Also:
Constant Field Values

YOUNGADULT

public static final int YOUNGADULT
See Also:
Constant Field Values

ADULT

public static final int ADULT
See Also:
Constant Field Values

OLD

public static final int OLD
See Also:
Constant Field Values

VERYOLD

public static final int VERYOLD
See Also:
Constant Field Values

ANCIENT

public static final int ANCIENT
See Also:
Constant Field Values

DRAGONCOLORCOUNT

public static final int DRAGONCOLORCOUNT
See Also:
Constant Field Values

WHITE

public static final int WHITE
See Also:
Constant Field Values

BLACK

public static final int BLACK
See Also:
Constant Field Values

BLUE

public static final int BLUE
See Also:
Constant Field Values

GREEN

public static final int GREEN
See Also:
Constant Field Values

RED

public static final int RED
See Also:
Constant Field Values

BRASS

public static final int BRASS
See Also:
Constant Field Values

COPPER

public static final int COPPER
See Also:
Constant Field Values

BRONZE

public static final int BRONZE
See Also:
Constant Field Values

SILVER

public static final int SILVER
See Also:
Constant Field Values

GOLD

public static final int GOLD
See Also:
Constant Field Values

Stomach

protected Room Stomach
Constructor Detail

Dragon

public Dragon()

Dragon

public Dragon(int colorValue)

Dragon

public Dragon(int colorValue,
              int ageValue)
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdMOB
Returns:
the name of this class

DragonColor

protected int DragonColor()

DragonAge

protected int DragonAge()

setupDragon

public void setupDragon(int colorValue,
                        int ageValue)

determineAge

protected static int determineAge()

getAgeDescription

protected java.lang.StringBuffer getAgeDescription(int draconianAge)

getColorDescription

protected java.lang.StringBuffer getColorDescription(int colorVal)

tick

public boolean tick(Tickable ticking,
                    int tickID)
Description copied from interface: Tickable
this is the method which is called periodically by the threading engine. How often it is called depends on the parameters passed to the threadding engine when it is submitted for thread access. Typically the period is once per TIME_TICK period, but that is determined when the object is submitted to the thread engine.

Specified by:
tick in interface Tickable
Overrides:
tick in class StdMOB
Parameters:
ticking - a reference to this Tickable object
tickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Returns:
true always, unless this object no longer wishes to ever tick again, in which case false
See Also:
Tickable, ServiceEngine, TickableGroup

useBreathWeapon

protected boolean useBreathWeapon()

trySwallowWhole

protected boolean trySwallowWhole()

recoverCharStats

public void recoverCharStats()
Specified by:
recoverCharStats in interface MOB
Overrides:
recoverCharStats in class StdMOB

digestTastyMorsels

protected boolean digestTastyMorsels()

killMeDead

public DeadBody killMeDead(boolean createBody)
Specified by:
killMeDead in interface MOB
Overrides:
killMeDead in class StdMOB