Package rra.model

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

Related Classes of rra.model.HPSTick

Copyright © 2018 www.massapicom. 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.