Examples of HPSTick


Examples of rra.model.HPSTick

  private XYSeries createHPSSeries(Combat c,CombatParticipant cp) {
    XYSeries xys=new XYSeries(cp.getName());
    for(int i=0;i<c.getCombatDuration();i++) {
      boolean foundIt=false;
      for(Iterator<HPSTick> it=cp.getHpsRealTimeStats().getHPSTicks().iterator();it.hasNext() && !foundIt;) {
        HPSTick hpsTick=it.next();
        if(hpsTick.getStartSecond()<=i && (hpsTick.getStartSecond()+hpsTick.getSecondsDuration())>i) {
          foundIt=true;
          xys.add(new XYDataItem(i, hpsTick.getHealingDone()/hpsTick.getSecondsDuration()))
        }
      }
      if(!foundIt)
        xys.add(new XYDataItem(i, 0));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.