Search in sources :

Example 1 with OpposedSkillTypeModel

use of plugin.initiative.OpposedSkillTypeModel in project pcgen by PCGen.

the class OpposedCheckDialog method initializeLists.

/**
	 *
	 * <p>
	 * Iniitializes the list of skills, and the main data models for the tables,
	 * based on the rolling and available groups.
	 * </p>
	 *
	 * @param rollingGroup   A list comprising the main (rolling) group of combatants
	 * @param availableGroup A list comprising the other combatants
	 */
private void initializeLists(List<InitHolder> rollingGroup, List<InitHolder> availableGroup) {
    skillNames.addAll(Globals.getContext().getReferenceContext().getConstructedCDOMObjects(Skill.class).stream().map(PObject::toString).collect(Collectors.toList()));
    ivjAvailableModel = new OpposedSkillTypeModel(availableGroup);
    ivjRollingSkillModel = new OpposedSkillModel(rollingGroup);
    ivjOpposedSkillModel = new OpposedSkillModel();
}
Also used : OpposedSkillTypeModel(plugin.initiative.OpposedSkillTypeModel) PObject(pcgen.core.PObject) OpposedSkillModel(plugin.initiative.OpposedSkillModel)

Aggregations

PObject (pcgen.core.PObject)1 OpposedSkillModel (plugin.initiative.OpposedSkillModel)1 OpposedSkillTypeModel (plugin.initiative.OpposedSkillTypeModel)1