com.planet_ink.coffee_mud.Libraries
Class TimsLibrary

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by com.planet_ink.coffee_mud.Libraries.TimsLibrary
All Implemented Interfaces:
CMObject, CMLibrary, ItemBuilderLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class TimsLibrary
extends StdLibrary
implements ItemBuilderLibrary


Constructor Summary
TimsLibrary()
           
 
Method Summary
 void balanceItemByLevel(Item I)
           
 Item enchant(Item I, int pct)
           
 boolean fixRejuvItem(Item I)
           
 Ability getCombatSpell(boolean malicious)
           
 java.util.Vector getCombatSpellSet()
           
 int[] getItemLevels(Item I, Ability ADJ, Ability RES, Ability CAST)
           
 Ability[] getTimsAdjResCast(Item I, int[] castMul)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 boolean itemFix(Item I)
           
 int levelsFromAbility(Item savedI)
           
 int levelsFromAdjuster(Item savedI, Ability ADJ)
           
 int levelsFromCaster(Item savedI, Ability CAST)
           
 int timsBaseLevel(Item I)
           
 int timsBaseLevel(Item I, Ability ADJ)
           
 java.util.Hashtable timsItemAdjustments(Item I, int level, int material, int weight, int hands, int wclass, int reach, long worndata)
           
 int timsLevelCalculator(Item I)
           
 int timsLevelCalculator(Item I, Ability ADJ, Ability RES, Ability CAST, int castMul)
           
 void toneDownAdjuster(Item I, Ability ADJ)
           
 void toneDownArmor(Armor A, Ability ADJ)
           
 boolean toneDownValue(Item I)
           
 void toneDownWeapon(Weapon W, Ability ADJ)
           
 int totalLevels(int[] levels)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary
activate, getSupportThread, shutdown
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

TimsLibrary

public TimsLibrary()
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 StdLibrary
Returns:
the name of this class

timsLevelCalculator

public int timsLevelCalculator(Item I)
Specified by:
timsLevelCalculator in interface ItemBuilderLibrary

timsLevelCalculator

public int timsLevelCalculator(Item I,
                               Ability ADJ,
                               Ability RES,
                               Ability CAST,
                               int castMul)
Specified by:
timsLevelCalculator in interface ItemBuilderLibrary

fixRejuvItem

public boolean fixRejuvItem(Item I)
Specified by:
fixRejuvItem in interface ItemBuilderLibrary

getTimsAdjResCast

public Ability[] getTimsAdjResCast(Item I,
                                   int[] castMul)
Specified by:
getTimsAdjResCast in interface ItemBuilderLibrary

itemFix

public boolean itemFix(Item I)
Specified by:
itemFix in interface ItemBuilderLibrary

toneDownValue

public boolean toneDownValue(Item I)
Specified by:
toneDownValue in interface ItemBuilderLibrary

balanceItemByLevel

public void balanceItemByLevel(Item I)
Specified by:
balanceItemByLevel in interface ItemBuilderLibrary

timsItemAdjustments

public java.util.Hashtable timsItemAdjustments(Item I,
                                               int level,
                                               int material,
                                               int weight,
                                               int hands,
                                               int wclass,
                                               int reach,
                                               long worndata)
Specified by:
timsItemAdjustments in interface ItemBuilderLibrary

toneDownWeapon

public void toneDownWeapon(Weapon W,
                           Ability ADJ)
Specified by:
toneDownWeapon in interface ItemBuilderLibrary

toneDownArmor

public void toneDownArmor(Armor A,
                          Ability ADJ)
Specified by:
toneDownArmor in interface ItemBuilderLibrary

toneDownAdjuster

public void toneDownAdjuster(Item I,
                             Ability ADJ)
Specified by:
toneDownAdjuster in interface ItemBuilderLibrary

getItemLevels

public int[] getItemLevels(Item I,
                           Ability ADJ,
                           Ability RES,
                           Ability CAST)

totalLevels

public int totalLevels(int[] levels)

timsBaseLevel

public int timsBaseLevel(Item I)
Specified by:
timsBaseLevel in interface ItemBuilderLibrary

timsBaseLevel

public int timsBaseLevel(Item I,
                         Ability ADJ)

levelsFromAbility

public int levelsFromAbility(Item savedI)
Specified by:
levelsFromAbility in interface ItemBuilderLibrary

levelsFromAdjuster

public int levelsFromAdjuster(Item savedI,
                              Ability ADJ)
Specified by:
levelsFromAdjuster in interface ItemBuilderLibrary

levelsFromCaster

public int levelsFromCaster(Item savedI,
                            Ability CAST)
Specified by:
levelsFromCaster in interface ItemBuilderLibrary

getCombatSpellSet

public java.util.Vector getCombatSpellSet()

getCombatSpell

public Ability getCombatSpell(boolean malicious)

enchant

public Item enchant(Item I,
                    int pct)
Specified by:
enchant in interface ItemBuilderLibrary