Class CountWaterSystem

java.lang.Object
com.deco2800.game.components.foodAndwater.CountWaterSystem

public class CountWaterSystem
extends java.lang.Object
this class handles the water update
  • Constructor Summary

    Constructors 
    Constructor Description
    CountWaterSystem()  
  • Method Summary

    Modifier and Type Method Description
    int getDifference()
    return the time difference
    int getTimer()
    return the time
    void setDifference​(int difference)
    set the time difference
    void setTimer​(int value)
    set a time

    Methods inherited from class java.lang.Object

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

  • Method Details

    • setTimer

      public void setTimer​(int value)
      set a time
      Parameters:
      value - a integer
    • setDifference

      public void setDifference​(int difference)
      set the time difference
      Parameters:
      difference - a integer
    • getTimer

      public int getTimer()
      return the time
    • getDifference

      public int getDifference()
      return the time difference