Class UpgradeTowerAction

java.lang.Object
com.prineside.tdi2.Action
com.prineside.tdi2.actions.UpgradeTowerAction
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public class UpgradeTowerAction extends Action
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UpgradeTowerAction(int x, int y)
     
    UpgradeTowerAction(com.badlogic.gdx.utils.JsonValue jsonValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
    void
    toJson(com.badlogic.gdx.utils.Json json)
    Значения должны записываться с учетом того, что json уже находится в объекте Action.
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class com.prineside.tdi2.Action

    affectsPlayerXp, fromJson

    Methods inherited from class java.lang.Object

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

    • x

      public int x
    • y

      public int y
  • Constructor Details

    • UpgradeTowerAction

      public UpgradeTowerAction(int x, int y)
    • UpgradeTowerAction

      public UpgradeTowerAction(com.badlogic.gdx.utils.JsonValue jsonValue)
  • Method Details

    • getType

      public ActionType getType()
      Specified by:
      getType in class Action
    • toJson

      public void toJson(com.badlogic.gdx.utils.Json json)
      Description copied from class: Action
      Значения должны записываться с учетом того, что json уже находится в объекте Action. Ключ "t" уже занят для типа действия.
      Overrides:
      toJson in class Action
    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
    • toString

      public String toString()
      Overrides:
      toString in class Object