|
From: <sou...@us...> - 2006-03-01 22:50:54
|
Revision: 49 Author: soulcatcher Date: 2006-03-01 14:49:21 -0800 (Wed, 01 Mar 2006) ViewCVS: http://svn.sourceforge.net/pcgen/?rev=49&view=rev Log Message: ----------- moved Bonuses into plugins Modified Paths: -------------- Trunk/pcgen/build.xml Trunk/pcgen/code/src/java/gmgen/pluginmgr/JARClassLoader.java Trunk/pcgen/code/src/java/pcgen/core/bonus/BonusObj.java Added Paths: ----------- Trunk/pcgen/code/src/java/pcgen/core/bonus/MultiTagBonusObj.java Trunk/pcgen/code/src/java/plugin/bonustokens/ Trunk/pcgen/code/src/java/plugin/bonustokens/ACValue.java Trunk/pcgen/code/src/java/plugin/bonustokens/CasterLevel.java Trunk/pcgen/code/src/java/plugin/bonustokens/Checks.java Trunk/pcgen/code/src/java/plugin/bonustokens/Combat.java Trunk/pcgen/code/src/java/plugin/bonustokens/DC.java Trunk/pcgen/code/src/java/plugin/bonustokens/DR.java Trunk/pcgen/code/src/java/plugin/bonustokens/Damage.java Trunk/pcgen/code/src/java/plugin/bonustokens/Domain.java Trunk/pcgen/code/src/java/plugin/bonustokens/Eqm.java Trunk/pcgen/code/src/java/plugin/bonustokens/EqmArmor.java Trunk/pcgen/code/src/java/plugin/bonustokens/EqmWeapon.java Trunk/pcgen/code/src/java/plugin/bonustokens/Feat.java Trunk/pcgen/code/src/java/plugin/bonustokens/HD.java Trunk/pcgen/code/src/java/plugin/bonustokens/HP.java Trunk/pcgen/code/src/java/plugin/bonustokens/ItemCapacity.java Trunk/pcgen/code/src/java/plugin/bonustokens/ItemCost.java Trunk/pcgen/code/src/java/plugin/bonustokens/ItemWeight.java Trunk/pcgen/code/src/java/plugin/bonustokens/Lang.java Trunk/pcgen/code/src/java/plugin/bonustokens/Languages.java Trunk/pcgen/code/src/java/plugin/bonustokens/LoadMult.java Trunk/pcgen/code/src/java/plugin/bonustokens/Misc.java Trunk/pcgen/code/src/java/plugin/bonustokens/ModSkillPoints.java Trunk/pcgen/code/src/java/plugin/bonustokens/MonNonSkillHD.java Trunk/pcgen/code/src/java/plugin/bonustokens/MonSkillPts.java Trunk/pcgen/code/src/java/plugin/bonustokens/Move.java Trunk/pcgen/code/src/java/plugin/bonustokens/PCLevel.java Trunk/pcgen/code/src/java/plugin/bonustokens/PPCost.java Trunk/pcgen/code/src/java/plugin/bonustokens/PointBuy.java Trunk/pcgen/code/src/java/plugin/bonustokens/PostRangeAdd.java Trunk/pcgen/code/src/java/plugin/bonustokens/RangeMult.java Trunk/pcgen/code/src/java/plugin/bonustokens/SizeMod.java Trunk/pcgen/code/src/java/plugin/bonustokens/Skill.java Trunk/pcgen/code/src/java/plugin/bonustokens/SkillPoints.java Trunk/pcgen/code/src/java/plugin/bonustokens/SkillPool.java Trunk/pcgen/code/src/java/plugin/bonustokens/SkillRank.java Trunk/pcgen/code/src/java/plugin/bonustokens/Slots.java Trunk/pcgen/code/src/java/plugin/bonustokens/Spell.java Trunk/pcgen/code/src/java/plugin/bonustokens/SpellCast.java Trunk/pcgen/code/src/java/plugin/bonustokens/SpellCastMult.java Trunk/pcgen/code/src/java/plugin/bonustokens/SpellKnown.java Trunk/pcgen/code/src/java/plugin/bonustokens/SpellKnownMult.java Trunk/pcgen/code/src/java/plugin/bonustokens/Stat.java Trunk/pcgen/code/src/java/plugin/bonustokens/ToHit.java Trunk/pcgen/code/src/java/plugin/bonustokens/UDam.java Trunk/pcgen/code/src/java/plugin/bonustokens/Var.java Trunk/pcgen/code/src/java/plugin/bonustokens/Vision.java Trunk/pcgen/code/src/java/plugin/bonustokens/Weapon.java Trunk/pcgen/code/src/java/plugin/bonustokens/WeaponProf.java Trunk/pcgen/code/src/java/plugin/bonustokens/WieldCategory.java Removed Paths: ------------- Trunk/pcgen/code/src/java/pcgen/core/bonus/ACValue.java Trunk/pcgen/code/src/java/pcgen/core/bonus/CasterLevel.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Checks.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Combat.java Trunk/pcgen/code/src/java/pcgen/core/bonus/DC.java Trunk/pcgen/code/src/java/pcgen/core/bonus/DR.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Damage.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Domain.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Eqm.java Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmArmor.java Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmWeapon.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Feat.java Trunk/pcgen/code/src/java/pcgen/core/bonus/HD.java Trunk/pcgen/code/src/java/pcgen/core/bonus/HP.java Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCapacity.java Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCost.java Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemWeight.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Lang.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Languages.java Trunk/pcgen/code/src/java/pcgen/core/bonus/LoadMult.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Misc.java Trunk/pcgen/code/src/java/pcgen/core/bonus/ModSkillPoints.java Trunk/pcgen/code/src/java/pcgen/core/bonus/MonNonSkillHD.java Trunk/pcgen/code/src/java/pcgen/core/bonus/MonSkillPts.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Move.java Trunk/pcgen/code/src/java/pcgen/core/bonus/MultiTagBonusObj.java Trunk/pcgen/code/src/java/pcgen/core/bonus/PCLevel.java Trunk/pcgen/code/src/java/pcgen/core/bonus/PPCost.java Trunk/pcgen/code/src/java/pcgen/core/bonus/PointBuy.java Trunk/pcgen/code/src/java/pcgen/core/bonus/PostRangeAdd.java Trunk/pcgen/code/src/java/pcgen/core/bonus/RangeMult.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SizeMod.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Skill.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SkillPoints.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SkillPool.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SkillRank.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Slots.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Spell.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SpellCast.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SpellCastMult.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SpellKnown.java Trunk/pcgen/code/src/java/pcgen/core/bonus/SpellKnownMult.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Stat.java Trunk/pcgen/code/src/java/pcgen/core/bonus/ToHit.java Trunk/pcgen/code/src/java/pcgen/core/bonus/UDam.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Var.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Vision.java Trunk/pcgen/code/src/java/pcgen/core/bonus/Weapon.java Trunk/pcgen/code/src/java/pcgen/core/bonus/WeaponProf.java Trunk/pcgen/code/src/java/pcgen/core/bonus/WieldCategory.java Modified: Trunk/pcgen/build.xml =================================================================== --- Trunk/pcgen/build.xml 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/build.xml 2006-03-01 22:49:21 UTC (rev 49) @@ -64,6 +64,7 @@ <property name="etc.dir" value="${basedir}/code/etc" /> <property name="plugins.dir" value="${basedir}/plugins" /> <property name="outputplugins.dir" value="${plugins.dir}/outputplugins" /> + <property name="bonusplugins.dir" value="${plugins.dir}/bonusplugins" /> <property name="lstplugins.dir" value="${plugins.dir}/lstplugins" /> <property name="systemlstplugins.dir" value="${plugins.dir}/systemlstplugins" /> <property name="src.java.dir" value="${basedir}/code/src/java" /> @@ -285,6 +286,8 @@ </patternset> </fileset> </jar> + + <!-- Export tokens--> <jar jarfile="${outputplugins.dir}/ExportToken-AC.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> <fileset dir="${build.classes.dir}"> <patternset> @@ -1013,6 +1016,353 @@ </patternset> </fileset> </jar> + + <!-- Bonus tokens--> + <jar jarfile="${bonusplugins.dir}/BonusToken-ACVALUE.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/ACValue.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-CASTERLEVEL.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/CasterLevel.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-CHECKS.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Checks.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-COMBAT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Combat.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-DAMAGE.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Damage.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-DC.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/DC.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-DOMAIN.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Domain.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-DR.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/DR.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-EQM.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Eqm.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-EQMARMOR.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/EqmArmor.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-EQMWEAPON.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/EqmWeapon.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-FEAT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Feat.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-HD.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/HD.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-HP.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/HP.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-ITEMCAPACITY.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/ItemCapacity.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-ITEMCOST.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/ItemCost.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-ITEMWEIGHT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/ItemWeight.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-LANG.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Lang.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-LANGUAGES.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Languages.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-LOADMULT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/LoadMult.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-MISC.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Misc.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-MODSKILLPOINTS.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/ModSkillPoints.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-MONNONSKILLHD.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/MonNonSkillHD.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-MONSKILLPTS.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/MonSkillPts.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-MOVE.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Move.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-PCLEVEL.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/PCLevel.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-POINTBUY.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/PointBuy.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-POSTRANGEADD.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/PostRangeAdd.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-PPCOST.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/PPCost.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-RANGEMULT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/RangeMult.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SIZEMOD.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SizeMod.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SKILL.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Skill.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SKILLPOINTS.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SkillPoints.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SKILLPOOL.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SkillPool.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SKILLRANK.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SkillRank.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SLOTS.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Slots.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SPELL.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Spell.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SPELLCAST.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SpellCast.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SPELLCASTMULT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SpellCastMult.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SPELLKNOWN.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SpellKnown.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-SPELLKNOWNMULT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/SpellKnownMult.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-STAT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/ItemCost.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-TOHIT.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/ToHit.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-UDAM.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/UDam.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-VAR.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Var.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-VISION.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Vision.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-WEAPON.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/Weapon.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-WEAPONPROF.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/WeaponProf.class" /> + </patternset> + </fileset> + </jar> + <jar jarfile="${bonusplugins.dir}/BonusToken-WIELDCATEGORY.jar" manifest="${src.java.dir}/plugin/exporttokens/manifest.mf"> + <fileset dir="${build.classes.dir}"> + <patternset> + <include name="plugin/bonustokens/WieldCategory.class" /> + </patternset> + </fileset> + </jar> + + <!-- Global Lst tokens--> <jar jarfile="${lstplugins.dir}/LstToken-ADD.jar" manifest="${src.java.dir}/plugin/lsttokens/manifest.mf"> <fileset dir="${build.classes.dir}"> <patternset> @@ -4182,6 +4532,9 @@ <fileset dir="${outputplugins.dir}" includes="*.jar"/> </delete> <delete> + <fileset dir="${bonusplugins.dir}" includes="*.jar"/> + </delete> + <delete> <fileset dir="${lstplugins.dir}" includes="*.jar"/> </delete> <delete> @@ -4191,6 +4544,7 @@ <target name="makedirs" description="Creates any needed directories"> <mkdir dir="${outputplugins.dir}" /> + <mkdir dir="${bonusplugins.dir}" /> <mkdir dir="${lstplugins.dir}" /> <mkdir dir="${systemlstplugins.dir}" /> </target> Modified: Trunk/pcgen/code/src/java/gmgen/pluginmgr/JARClassLoader.java =================================================================== --- Trunk/pcgen/code/src/java/gmgen/pluginmgr/JARClassLoader.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/gmgen/pluginmgr/JARClassLoader.java 2006-03-01 22:49:21 UTC (rev 49) @@ -25,12 +25,6 @@ import gmgen.GMGenSystem; import gmgen.gui.PreferencesPluginsPanel; import gmgen.util.MiscUtilities; -import pcgen.core.Constants; -import pcgen.core.SettingsHandler; -import pcgen.io.ExportHandler; -import pcgen.io.exporttoken.Token; -import pcgen.persistence.lst.*; -import pcgen.util.Logging; import java.io.IOException; import java.io.InputStream; @@ -43,6 +37,16 @@ import java.util.zip.ZipEntry; import java.util.zip.ZipFile; +import pcgen.core.Constants; +import pcgen.core.SettingsHandler; +import pcgen.core.bonus.Bonus; +import pcgen.core.bonus.BonusObj; +import pcgen.io.ExportHandler; +import pcgen.io.exporttoken.Token; +import pcgen.persistence.lst.LstToken; +import pcgen.persistence.lst.TokenStore; +import pcgen.util.Logging; + /** * A class loader implementation that loads classes from JAR files. * @@ -97,10 +101,10 @@ { classHash.put(MiscUtilities.fileToClass(name), this); - if (name.endsWith("Plugin.class") || name.endsWith("Token.class") || name.endsWith("Lst.class")) - { - pluginClasses.addElement(name); - } + //if (name.endsWith("Plugin.class") || name.endsWith("Token.class") || name.endsWith("Lst.class")) + //{ + pluginClasses.addElement(name); + //} } } @@ -449,6 +453,7 @@ if(system.equals(Constants.s_SYSTEM_TOKENS)) { loadOutputTokenClass(clazz, modifiers); loadLstTokens(clazz, modifiers); + loadBonusTokens(clazz, name, modifiers); } return loadPluginClass(clazz, modifiers, name, system); } @@ -494,6 +499,14 @@ TokenStore.inst().addToTokenMap(pl); } } + + private void loadBonusTokens(Class clazz, String name, int modifiers) throws Exception + { + if (!Modifier.isInterface(modifiers) && !Modifier.isAbstract(modifiers) && BonusObj.class.isAssignableFrom(clazz)) + { + Bonus.addBonusClass(clazz, name); + } + } private boolean addPreferencesPanel(Class clazz, Plugin pl) { boolean load = true; Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/ACValue.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/ACValue.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/ACValue.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,57 +0,0 @@ -/* - * ACValue.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.8 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>ACValue</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class ACValue extends BonusObj -{ - private static final String[] bonusHandled = - { - "ACVALUE" - }; - - boolean parseToken(final String token) - { - addBonusInfo(token); - - return true; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Modified: Trunk/pcgen/code/src/java/pcgen/core/bonus/BonusObj.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/BonusObj.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/BonusObj.java 2006-03-01 22:49:21 UTC (rev 49) @@ -719,22 +719,22 @@ return sb.toString(); } - void setBonusName(final String aName) + protected void setBonusName(final String aName) { bonusName = aName; } - void setTypeOfBonus(final int type) + protected void setTypeOfBonus(final int type) { typeOfBonus = type; } - void addBonusInfo(final Object obj) + protected void addBonusInfo(final Object obj) { bonusInfo.add(obj); } - void replaceBonusInfo(final Object oldObj, final Object newObj) + protected void replaceBonusInfo(final Object oldObj, final Object newObj) { for (int i = 0; i < bonusInfo.size(); ++i) { @@ -764,7 +764,7 @@ } } - boolean addType(final String typeString) + protected boolean addType(final String typeString) { if (bonusType.length() == 0) { @@ -776,19 +776,19 @@ return false; } - boolean parseToken(final String token) + protected boolean parseToken(final String token) { System.err.println("Need to override parseToken in " + getClass().getName()); return false; } - String unparseToken(final Object obj) + protected String unparseToken(final Object obj) { System.err.println("Need to override unparseToken in " + getClass().getName()); return ""; } - String[] getBonusesHandled() + protected String[] getBonusesHandled() { System.err.println("Need to override getBonusesHandled " + getClass().getName()); return new String[]{ "" }; Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/CasterLevel.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/CasterLevel.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/CasterLevel.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,64 +0,0 @@ -/* - * CasterLevel.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.7 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>CasterLevel</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class CasterLevel extends BonusObj -{ - private static final String[] bonusHandled = - { - "CASTERLEVEL" - }; - - boolean parseToken(final String token) - { - if (token.startsWith("TYPE=")) - { - addBonusInfo(token.replace('=', '.')); - } - else - { - addBonusInfo(token); - } - - return true; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/Checks.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/Checks.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/Checks.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,111 +0,0 @@ -/* - * Checks.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.16 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - -import pcgen.core.PObject; -import pcgen.core.SettingsHandler; - -import java.util.Iterator; - -/** - * <code>Checks</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class Checks extends BonusObj -{ - private static final String[] bonusHandled = - { - "CHECKS" - }; - - boolean parseToken(final String argToken) - { - boolean isBase = false; - final String token; - - if (argToken.startsWith("BASE.")) - { - token = argToken.substring(5); - isBase = true; - } - else - { - token = argToken; - } - - PObject aCheck = SettingsHandler.getGame().getCheckNamed(token); - - if (aCheck != null) - { - addBonusInfo(new CheckInfo(aCheck, isBase)); - - return true; - } - else if ("ALL".equals(token)) - { - // Special case of: BONUS:CHECKS|ALL|x - for (Iterator ac = SettingsHandler.getGame().getUnmodifiableCheckList().iterator(); ac.hasNext();) - { - aCheck = (PObject) ac.next(); - addBonusInfo(new CheckInfo(aCheck, isBase)); - } - - return true; - } - - return false; - } - - String unparseToken(final Object obj) - { - String token = ""; - - if (((CheckInfo) obj).isBase) - { - token = "BASE."; - } - - return token + ((CheckInfo) obj).pobj.getName(); - } - - private static class CheckInfo - { - final PObject pobj; - final boolean isBase; - - CheckInfo(final PObject argPobj, final boolean argIsBase) - { - pobj = argPobj; - isBase = argIsBase; - } - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/Combat.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/Combat.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/Combat.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,74 +0,0 @@ -/* - * Combat.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.11 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>Combat</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class Combat extends MultiTagBonusObj -{ - private static final String[] bonusHandled = - { - "COMBAT" - }; - private static final String[] bonusTags = - { - "AC", - "ATTACKS", - "ATTACKS-SECONDARY", - "BAB", - "DAMAGE", - "DAMAGESIZE", - "DAMAGE-PRIMARY", - "DAMAGE-SECONDARY", - "DAMAGE-SHORTRANGE", - "DEFENSE", - "INITIATIVE", - "REACH", - "TOHIT", - "TOHIT-PRIMARY", - "TOHIT-SECONDARY", - "TOHIT-SHORTRANGE" - }; - - String[] getBonusesHandled() - { - return bonusHandled; - } - - String getBonusTag(final int tagNumber) - { - return bonusTags[tagNumber]; - } - - int getBonusTagLength() - { - return bonusTags.length; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/DC.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/DC.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/DC.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,100 +0,0 @@ -/* - * DC.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.11 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>DC</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class DC extends BonusObj -{ - private static final String[] bonusHandled = - { - "DC" - }; - - private static final String[] bonusTags = { "FEATBONUS", "ALLSPELLS" }; - - /* - * is either a bonusTag[] - * or: - * CLASS.<ClassName> - * DESCRIPTOR.<Descrpt> - * DOMAIN.<DomainName> - * SCHOOL.<SchoolName> - * SUBSCHOOL.<SubSchoolName> - * TYPE.<CasterType> - * SPELL.<SpellName> - */ - boolean parseToken(final String token) - { - for (int i = 0; i < bonusTags.length; ++i) - { - if (token.equals(bonusTags[i])) - { - addBonusInfo(new Integer(i)); - - return true; - } - } - - // Must remove the %LIST if present - - /* - if (token.indexOf(".%LIST") > 0) - { - token = token.substring(0, token.indexOf(".%LIST")); - } - */ - if (token.startsWith("CLASS") || token.startsWith("DESCRIPTOR") || token.startsWith("DOMAIN") - || token.startsWith("SCHOOL") || token.startsWith("SUBSCHOOL") || token.startsWith("TYPE") - || token.startsWith("SPELL")) - { - addBonusInfo(token); - - return true; - } - - return false; - } - - String unparseToken(final Object obj) - { - if (obj instanceof Integer) - { - return bonusTags[((Integer) obj).intValue()]; - } - - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/DR.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/DR.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/DR.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,57 +0,0 @@ -/* - * DR.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.7 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>DR</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class DR extends BonusObj -{ - private static final String[] bonusHandled = - { - "DR" - }; - - boolean parseToken(final String token) - { - addBonusInfo(token); - - return true; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/Damage.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/Damage.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/Damage.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,64 +0,0 @@ -/* - * Damage.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.10 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>Damage</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class Damage extends BonusObj -{ - private static final String[] bonusHandled = - { - "DAMAGE" - }; - - boolean parseToken(final String token) - { - if (token.startsWith("TYPE=")) - { - addBonusInfo(token.replace('=', '.')); - } - else - { - addBonusInfo(token); - } - - return true; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/Domain.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/Domain.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/Domain.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,59 +0,0 @@ -/* - * Domain.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.8 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>Domain</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class Domain extends MultiTagBonusObj -{ - private static final String[] bonusHandled = - { - "DOMAIN" - }; - private static final String[] bonusTags = - { - "NUMBER" - }; - - String[] getBonusesHandled() - { - return bonusHandled; - } - - String getBonusTag(final int tagNumber) - { - return bonusTags[tagNumber]; - } - - int getBonusTagLength() - { - return bonusTags.length; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/Eqm.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/Eqm.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/Eqm.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,61 +0,0 @@ -/* - * Eqm.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.8 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>Eqm</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class Eqm extends MultiTagBonusObj -{ - private static final String[] bonusHandled = - { - "EQM" - }; - private static final String[] bonusTags = - { - "WEIGHTADD", - "WEIGHTDIV", - "WEIGHTMULT" - }; - - String[] getBonusesHandled() - { - return bonusHandled; - } - - String getBonusTag(final int tagNumber) - { - return bonusTags[tagNumber]; - } - - int getBonusTagLength() - { - return bonusTags.length; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmArmor.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmArmor.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmArmor.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,64 +0,0 @@ -/* - * EqmArmor.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.9 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>EqmArmor</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class EqmArmor extends MultiTagBonusObj -{ - private static final String[] bonusHandled = - { - "EQMARMOR" - }; - private static final String[] bonusTags = - { - "AC", - "ACCHECK", - "DEFBONUS", - "EDR", - "MAXDEX", - "SPELLFAILURE" - }; - - String[] getBonusesHandled() - { - return bonusHandled; - } - - String getBonusTag(final int tagNumber) - { - return bonusTags[tagNumber]; - } - - int getBonusTagLength() - { - return bonusTags.length; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmWeapon.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmWeapon.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/EqmWeapon.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,63 +0,0 @@ -/* - * EqmWeapon.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.8 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>EqmWeapon</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class EqmWeapon extends MultiTagBonusObj -{ - private static final String[] bonusHandled = - { - "EQMWEAPON" - }; - private static final String[] bonusTags = - { - "CRITRANGEADD", - "CRITRANGEDOUBLE", - "DAMAGESIZE", - "RANGEADD", - "RANGEMULT" - }; - - String[] getBonusesHandled() - { - return bonusHandled; - } - - String getBonusTag(final int tagNumber) - { - return bonusTags[tagNumber]; - } - - int getBonusTagLength() - { - return bonusTags.length; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/Feat.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/Feat.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/Feat.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,62 +0,0 @@ -/* - * Feat.java - * Copyright 2004 (C) Devon Jones <sou...@ev...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.6 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>Feat</code> - * - * @author Devon Jones <sou...@ev...> - * @author Greg Bingleman <by...@ho...> - */ -final class Feat extends BonusObj -{ - private static final String[] bonusHandled = - { - "FEAT" - }; - - boolean parseToken(final String token) - { - if ("POOL".equals(token)) - { - addBonusInfo(token); - return true; - } - - return false; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/HD.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/HD.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/HD.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,60 +0,0 @@ -/* - * HD.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.9 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>HD</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class HD extends MultiTagBonusObj -{ - private static final String[] bonusHandled = - { - "HD" - }; - private static final String[] bonusTags = - { - "MAX", - "MIN" - }; - - String[] getBonusesHandled() - { - return bonusHandled; - } - - String getBonusTag(final int tagNumber) - { - return bonusTags[tagNumber]; - } - - int getBonusTagLength() - { - return bonusTags.length; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/HP.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/HP.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/HP.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,62 +0,0 @@ -/* - * HP.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.9 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>HP</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class HP extends MultiTagBonusObj -{ - private static final String[] bonusHandled = - { - "HP" - }; - private static final String[] bonusTags = - { - "BONUS", - "CURRENTMAX", - "CURRENTMAXPERLEVEL", - "ALTHP" - }; - - String[] getBonusesHandled() - { - return bonusHandled; - } - - String getBonusTag(final int tagNumber) - { - return bonusTags[tagNumber]; - } - - int getBonusTagLength() - { - return bonusTags.length; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCapacity.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCapacity.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCapacity.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,64 +0,0 @@ -/* - * ItemCapacity.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.10 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>ItemCapacity</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class ItemCapacity extends BonusObj -{ - private static final String[] bonusHandled = - { - "ITEMCAPACITY" - }; - - boolean parseToken(final String token) - { - if (token.startsWith("TYPE=")) - { - addBonusInfo(token.replace('=', '.')); - } - else - { - addBonusInfo(token); - } - - return true; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCost.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCost.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemCost.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,64 +0,0 @@ -/* - * ItemCost.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.10 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>ItemCost</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class ItemCost extends BonusObj -{ - private static final String[] bonusHandled = - { - "ITEMCOST" - }; - - boolean parseToken(final String token) - { - if (token.startsWith("TYPE=")) - { - addBonusInfo(token.replace('=', '.')); - } - else - { - addBonusInfo(token); - } - - return true; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemWeight.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemWeight.java 2006-03-01 22:27:36 UTC (rev 48) +++ Trunk/pcgen/code/src/java/pcgen/core/bonus/ItemWeight.java 2006-03-01 22:49:21 UTC (rev 49) @@ -1,64 +0,0 @@ -/* - * ItemWeight.java - * Copyright 2002 (C) Greg Bingleman <by...@ho...> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Created on December 13, 2002, 9:19 AM - * - * Current Ver: $Revision: 1.10 $ - * Last Editor: $Author: binkley $ - * Last Edited: $Date: 2005/11/13 20:01:22 $ - * - */ -package pcgen.core.bonus; - - -/** - * <code>ItemWeight</code> - * - * @author Greg Bingleman <by...@ho...> - */ -final class ItemWeight extends BonusObj -{ - private static final String[] bonusHandled = - { - "ITEMWEIGHT" - }; - - boolean parseToken(final String token) - { - if (token.startsWith("TYPE=")) - { - addBonusInfo(token.replace('=', '.')); - } - else - { - addBonusInfo(token); - } - - return true; - } - - String unparseToken(final Object obj) - { - return (String) obj; - } - - String[] getBonusesHandled() - { - return bonusHandled; - } -} Deleted: Trunk/pcgen/code/src/java/pcgen/core/bonus/Lang.java ==... [truncated message content] |