Search in sources :

Example 1 with LevelTableFacet

use of pcgen.cdom.facet.analysis.LevelTableFacet in project pcgen by PCGen.

the class XPFacetTest method getMockFacet.

public XPFacet getMockFacet() throws SecurityException, IllegalArgumentException {
    XPFacet f = new XPFacet();
    LevelFacet fakeFacet = new LevelFacet() {

        @Override
        public int getLevelAdjustment(CharID cid) {
            return adjustment;
        }
    };
    f.setLevelFacet(fakeFacet);
    LevelTableFacet fakeTableFacet = new LevelTableFacet() {

        @Override
        public int minXPForLevel(int level, CharID cid) {
            return minXP.get(level);
        }
    };
    f.setLevelTableFacet(fakeTableFacet);
    return f;
}
Also used : LevelFacet(pcgen.cdom.facet.analysis.LevelFacet) LevelTableFacet(pcgen.cdom.facet.analysis.LevelTableFacet) CharID(pcgen.cdom.enumeration.CharID)

Aggregations

CharID (pcgen.cdom.enumeration.CharID)1 LevelFacet (pcgen.cdom.facet.analysis.LevelFacet)1 LevelTableFacet (pcgen.cdom.facet.analysis.LevelTableFacet)1