Back to project page Gloomy-Dungeons-3D.
The source code is released under:
MIT License
If you think the Android project Gloomy-Dungeons-3D listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package zame.game.engine; //from w w w .java 2 s .c o m import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; public class AutoWall implements Externalizable { private static final long serialVersionUID = 0L; public float fromX; public float fromY; public float toX; public float toY; public boolean vert; public int type; public int doorIndex; // required for save/load public Door door; public void copyFrom(AutoWall aw) { fromX = aw.fromX; fromY = aw.fromY; toX = aw.toX; toY = aw.toY; vert = aw.vert; type = aw.type; doorIndex = aw.doorIndex; door = aw.door; } public void writeExternal(ObjectOutput os) throws IOException { os.writeFloat(fromX); os.writeFloat(fromY); os.writeFloat(toX); os.writeFloat(toY); os.writeBoolean(vert); os.writeInt(type); os.writeInt(doorIndex); } public void readExternal(ObjectInput is) throws IOException { fromX = is.readFloat(); fromY = is.readFloat(); toX = is.readFloat(); toY = is.readFloat(); vert = is.readBoolean(); type = is.readInt(); doorIndex = is.readInt(); } }