com.partnersoft.v3x.io.formats.rover
Class XRef

java.lang.Object
  extended by com.partnersoft.v3x.io.formats.rover.XRef
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class XRef
extends java.lang.Object
implements java.io.Externalizable

Holds the information needed to find data in another rover cell.

See Also:
Serialized Form

Constructor Summary
XRef()
           
XRef(int x, int y, long goedel)
           
 
Method Summary
 long getGoedel()
          ID number for the object within the given tile.
 int getX()
          X coordinate of tile containing referenced data.
 int getY()
          Y coordinate of tile containing referenced data.
 void readExternal(java.io.ObjectInput in)
           
 void setGoedel(long newGoedel)
           
 void setX(int newX)
           
 void setY(int newY)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XRef

public XRef()

XRef

public XRef(int x,
            int y,
            long goedel)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

getX

public int getX()
X coordinate of tile containing referenced data.


setX

public void setX(int newX)

getY

public int getY()
Y coordinate of tile containing referenced data.


setY

public void setY(int newY)

getGoedel

public long getGoedel()
ID number for the object within the given tile.


setGoedel

public void setGoedel(long newGoedel)