MCPcopy Create free account
hub / github.com/PCGen/pcgen / SpellLikeAbility

Class SpellLikeAbility

code/src/java/pcgen/cdom/content/SpellLikeAbility.java:25–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23import pcgen.core.spell.Spell;
24
25public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected