Class Tile.Pos

java.lang.Object
com.prineside.tdi2.Tile.Pos
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, MapElementPos
Enclosing class:
Tile

public static class Tile.Pos extends Object implements com.esotericsoftware.kryo.KryoSerializable, MapElementPos
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pos()
     
    Pos(int x, int y)
     
    Pos(Tile from)
     
    Pos(Tile.Pos from)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    int
     
    int
     
    boolean
    is(int x, int y)
     
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
    void
    set(Tile.Pos from)
     
    void
    setX(int x)
     
    void
    setY(int y)
     
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class java.lang.Object

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

    • Pos

      public Pos()
    • Pos

      public Pos(Tile.Pos from)
    • Pos

      public Pos(Tile from)
    • Pos

      public Pos(int x, int y)
  • 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
    • set

      public void set(Tile.Pos from)
    • getX

      public int getX()
    • setX

      public void setX(int x)
    • getY

      public int getY()
    • setY

      public void setY(int y)
    • is

      public boolean is(int x, int y)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object