Package general

Examples of general.Range


    catch (Exception e){
      Log.write("Loading failed, file doesn't exist - creating new ranges");
      this.pointsLimits = new Range[4];
      this.cardLimits = new Range[4][4];
      for (int t = 0; t < 4; t++) {
        this.pointsLimits[t] = new Range(0, 40);
        for (int s = 0; s < 4; s++) {
          this.cardLimits[t][s] = new Range(0, 13);
        }
      }
    }
  }
View Full Code Here


    // check that all the players can have the minimum range of cards
    Range[][] newRanges = new Range[4][4];
    for (int i = 0; i < 4; i++) {
      int cardsNeeded = 0;
      for (Symbol symb : Symbol.values()) {
        newRanges[i][symb.getLocation()] = new Range(
            this.cardLimits[i][symb.getLocation()].getMin()
                - amounts[i][symb.getLocation()],
            this.cardLimits[i][symb.getLocation()].getMax()
                - amounts[i][symb.getLocation()]);
        if (newRanges[i][symb.getLocation()].getMax() < 0) // has more
View Full Code Here

TOP

Related Classes of general.Range

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.