Beispiel #1
0
 @Override
 public boolean validate(Stat2 stat, IStatFunction statFunction) {
   return conditions != null ? conditions.validate(stat, statFunction) : true;
 }
Beispiel #2
0
 /** Check all conditions before using skill */
 private boolean preUsageCheck() {
   Conditions skillConditions = skillTemplate.getUseconditions();
   return skillConditions != null ? skillConditions.validate(this) : true;
 }
Beispiel #3
0
 /** Check all conditions after using skill */
 private boolean endCondCheck() {
   Conditions skillConditions = skillTemplate.getEndConditions();
   return skillConditions != null ? skillConditions.validate(this) : true;
 }
Beispiel #4
0
 /** Check all conditions before starting cast */
 protected boolean preCastCheck() {
   Conditions skillConditions = skillTemplate.getStartconditions();
   return skillConditions != null ? skillConditions.validate(this) : true;
 }