use of main.content.VALUE in project Eidolons by IDemiurge.
the class DemoManager method initHero.
private static void initHero() {
// TODO JUST USE 'CHOOSE CENTER HERO' ?
List<ObjType> demoHeroes = new ArrayList<>();
DataManager.getTypesSubGroup(DC_TYPE.CHARS, "Demo");
Unit entity = null;
ChoiceSequence sequence = new ChoiceSequence();
sequence.addView(new EntityChoiceView(sequence, entity, demoHeroes) {
@Override
public String getInfo() {
return null;
}
@Override
protected PROPERTY getPROP() {
return null;
}
// @Override
// protected Condition getFilterConditions() {
// // return new NumericCondition("level");
// }
@Override
protected VALUE getFilterValue() {
return null;
}
protected OBJ_TYPE getTYPE() {
return DC_TYPE.CHARS;
}
});
sequence.setManager(new SequenceManager() {
@Override
public void doneSelection() {
WaitMaster.receiveInput(WAIT_OPERATIONS.SELECTION, sequence.getValue());
Launcher.resetView(VIEWS.HC);
// setLeader()
PartyHelper.loadParty(demoParty);
// initSelectedHero();
// newParty();
// launchHC();
}
@Override
public void cancelSelection() {
}
});
sequence.start();
}
use of main.content.VALUE in project Eidolons by IDemiurge.
the class DC_QuickItemObj method initActiveType.
private ObjType initActiveType() {
ObjType type = new TypeInitializer().getNewType(DC_TYPE.ACTIONS);
type.setProperty(G_PROPS.IMAGE, getImagePath());
type.setProperty(G_PROPS.NAME, getName() + "'s active");
type.setGame(game);
for (VALUE v : ValuePages.COSTS) {
type.copyValue(v, this);
}
for (VALUE v : ValuePages.QUICK_ITEM_PARAMETERS) {
type.copyValue(v, this);
}
for (VALUE v : ValuePages.QUICK_ITEM_PROPERTIES) {
type.copyValue(v, this);
}
for (VALUE v : TRANSLATED_VALUES) {
type.copyValue(v, this);
}
return type;
}
use of main.content.VALUE in project Eidolons by IDemiurge.
the class HeroLevelManager method copyLevelValues.
private static void copyLevelValues(Unit hero, ObjType type) {
for (VALUE v : LEVEL_RELEVANT_VALUES) {
buffer.put(v, type.getValue(v));
type.setValue(v, hero.getValue(v));
}
}
Aggregations