use of eidolons.game.module.dungeoncrawl.objects.DoorMaster.DOOR_ACTION in project Eidolons by IDemiurge.
the class DoorMaster method getActions.
public List<DC_ActiveObj> getActions(DungeonObj door, Unit unit) {
if (!(door instanceof Door))
return new ArrayList<>();
if (!checkUnitCanHandleActions(unit)) {
return new ArrayList<>();
}
// check intelligence, mastery
List<DC_ActiveObj> list = new ArrayList<>();
DC_UnitAction action = null;
for (DOOR_ACTION sub : DOOR_ACTION.values()) {
if (checkAction(unit, (Door) door, sub)) {
action = createAction(sub, unit, door);
if (action != null) {
list.add(action);
}
}
}
return list;
}
Aggregations