Package com.prineside.tdi2
Class Gate.Pos
java.lang.Object
com.prineside.tdi2.Gate.Pos
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,MapElementPos
- Enclosing class:
- Gate
public static class Gate.Pos
extends Object
implements com.esotericsoftware.kryo.KryoSerializable, MapElementPos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetX()intgetY()inthashCode()booleanis(int x, int y, boolean left) booleanisLeft()voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidvoidsetLeft(boolean left) voidsetX(int x) voidsetY(int y) toString()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
Pos
public Pos() -
Pos
-
Pos
-
Pos
public Pos(int x, int y, boolean isLeft)
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-
set
-
getX
public int getX() -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
isLeft
public boolean isLeft() -
setLeft
public void setLeft(boolean left) -
is
public boolean is(int x, int y, boolean left) -
toString
-
equals
-
hashCode
public int hashCode()
-