Package rra.model

Examples of rra.model.DPSTick


  private XYSeries createDPSSeries(Combat c,CombatParticipant cp) {
    XYSeries xys=new XYSeries(cp.getName());
    for(int i=0;i<c.getCombatDuration();i++) {
      boolean foundIt=false;
      for(Iterator<DPSTick> it=cp.getDpsRealTimeStats().getDPSTicks().iterator();it.hasNext() && !foundIt;) {
        DPSTick dpsTick=it.next();
        //System.out.println("Tick second="+dpsTick.getStartSecond());
        if(dpsTick.getStartSecond()<=i && (dpsTick.getStartSecond()+dpsTick.getSecondsDuration())>i) {
          //System.out.println("Graph>"+i+" tick="+dpsTick.getDamageDone()/dpsTick.getSecondsDuration());
          foundIt=true;
          xys.add(new XYDataItem(i, dpsTick.getDamageDone()/dpsTick.getSecondsDuration()))
        }
      }
      if(!foundIt)
        xys.add(new XYDataItem(i, 0));
    }
View Full Code Here


  private XYSeries createDTPSSeries(Combat c,CombatParticipant cp) {
    XYSeries xys=new XYSeries(cp.getName());
    for(int i=0;i<c.getCombatDuration();i++) {
      boolean foundIt=false;
      for(Iterator<DPSTick> it=cp.getDtpsRealTimeStats().getDPSTicks().iterator();it.hasNext() && !foundIt;) {
        DPSTick dtpsTick=it.next();
        if(dtpsTick.getStartSecond()<=i && (dtpsTick.getStartSecond()+dtpsTick.getSecondsDuration())>i) {
          foundIt=true;
          xys.add(new XYDataItem(i, dtpsTick.getDamageDone()/dtpsTick.getSecondsDuration()))
        }
      }
      if(!foundIt)
        xys.add(new XYDataItem(i, 0));
    }
View Full Code Here

TOP

Related Classes of rra.model.DPSTick

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.