| 23 | import pcgen.core.spell.Spell; |
| 24 | |
| 25 | public class SpellLikeAbility extends ConcretePrereqObject implements QualifyingObject |
| 26 | { |
| 27 | private final Spell spell; |
| 28 | private final Formula castTimes; // times the spell is in this list |
| 29 | private final String castTimeUnit; // the timeunit the times is for (day, week etc) |
| 30 | private final String fixedCasterLevel; |
| 31 | private final String dc; |
| 32 | private final String book; |
| 33 | private final String qualifiedKey; |
| 34 | |
| 35 | public SpellLikeAbility(Spell sp, Formula times, String timeunit, String spellbook, String fixedLevel, |
| 36 | String fixedDC, String sourceident) |
| 37 | { |
| 38 | spell = sp; |
| 39 | castTimes = times; |
| 40 | castTimeUnit = timeunit; |
| 41 | book = spellbook; |
| 42 | fixedCasterLevel = fixedLevel; |
| 43 | dc = fixedDC; |
| 44 | qualifiedKey = sourceident; |
| 45 | } |
| 46 | |
| 47 | public Spell getSpell() |
| 48 | { |
| 49 | return spell; |
| 50 | } |
| 51 | |
| 52 | public Formula getCastTimes() |
| 53 | { |
| 54 | return castTimes; |
| 55 | } |
| 56 | |
| 57 | public String getCastTimeUnit() |
| 58 | { |
| 59 | return castTimeUnit; |
| 60 | } |
| 61 | |
| 62 | public String getFixedCasterLevel() |
| 63 | { |
| 64 | return fixedCasterLevel; |
| 65 | } |
| 66 | |
| 67 | public String getDC() |
| 68 | { |
| 69 | return dc; |
| 70 | } |
| 71 | |
| 72 | public String getSpellBook() |
| 73 | { |
| 74 | return book; |
| 75 | } |
| 76 | |
| 77 | public String getQualifiedKey() |
| 78 | { |
| 79 | return qualifiedKey; |
| 80 | } |
| 81 | |
| 82 | } |
nothing calls this directly
no outgoing calls
no test coverage detected