Class GameParams.DifficultyIndex

java.lang.Object
it.unisa.diem.wordageddon_g16.models.GameParams.DifficultyIndex
Enclosing class:
GameParams

public static class GameParams.DifficultyIndex extends Object
Classe di supporto per la gestione della difficoltà.

Calcola in modo progressivo l'influenza della difficoltà su vari parametri

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Costruisce un nuovo DifficultyIndex.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Restituisce un valore casuale in base alla difficoltà corrente, e lo sottrae dal valore disponibile.
    float
    Fornisce la quantità di difficoltà ancora disponibile.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      private float value
  • Constructor Details

    • DifficultyIndex

      public DifficultyIndex()
      Costruisce un nuovo DifficultyIndex.
  • Method Details

    • getNext

      public float getNext()
      Restituisce un valore casuale in base alla difficoltà corrente, e lo sottrae dal valore disponibile.
      Returns:
      valore parziale generato casualmente
    • getRemaining

      public float getRemaining()
      Fornisce la quantità di difficoltà ancora disponibile.
      Returns:
      valore rimanente