Class CheatSafeInt

java.lang.Object
com.prineside.tdi2.utils.CheatSafeInt
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class CheatSafeInt extends Object implements com.esotericsoftware.kryo.KryoSerializable
  • Constructor Summary

    Constructors
    Constructor
    Description
    CheatSafeInt(int value, int setOnCheat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int amount)
     
    int
    get()
     
    int
     
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
    void
    set(int newValue)
     
    void
    sub(int amount)
     
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CheatSafeInt

      public CheatSafeInt(int value, int setOnCheat)
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • getSetOnCheat

      public int getSetOnCheat()
    • get

      public int get()
    • set

      public void set(int newValue)
    • add

      public void add(int amount)
    • sub

      public void sub(int amount)
    • toString

      public String toString()
      Overrides:
      toString in class Object