Package fr.neatmonster.nocheatplus.utilities

Examples of fr.neatmonster.nocheatplus.utilities.ActionFrequency.clear()


    ActionFrequency freq = new ActionFrequency(10, 100);
    for (int i = 0; i < 10; i++){
      freq.setBucket(i, 1);
    }
    if (freq.score(1f) != 10f) fail("10x1=10");
    freq.clear(0);
    if (freq.score(1f) != 0f) fail("clear=0");
   
    // TODO: more tests...
  }
 
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.