Search in sources :

Example 6 with FeatLoader

use of pcgen.persistence.lst.FeatLoader in project pcgen by PCGen.

the class PCHasVarFunctionTest method additionalSetUp.

@Override
protected void additionalSetUp() throws Exception {
    CampaignSourceEntry cse = new CampaignSourceEntry(new Campaign(), new URI("file:/" + getClass().getName() + ".java"));
    final FeatLoader featLoader = new FeatLoader();
    fooFeat = new Ability();
    final String fooFeatStr = "Foo	TYPE:General	DEFINE:FooV|0";
    featLoader.parseLine(Globals.getContext(), fooFeat, fooFeatStr, cse);
}
Also used : CampaignSourceEntry(pcgen.persistence.lst.CampaignSourceEntry) Ability(pcgen.core.Ability) Campaign(pcgen.core.Campaign) FeatLoader(pcgen.persistence.lst.FeatLoader) URI(java.net.URI)

Aggregations

URI (java.net.URI)6 CampaignSourceEntry (pcgen.persistence.lst.CampaignSourceEntry)6 FeatLoader (pcgen.persistence.lst.FeatLoader)6 Ability (pcgen.core.Ability)5 Campaign (pcgen.core.Campaign)5 URISyntaxException (java.net.URISyntaxException)4 UnreachableError (pcgen.base.lang.UnreachableError)4 PlayerCharacter (pcgen.core.PlayerCharacter)3 LoadContext (pcgen.rules.context.LoadContext)2 PCTemplate (pcgen.core.PCTemplate)1