public class RoverBlockHeader extends java.lang.Object implements Immutable
This is a wrapper to provide an easy and standard way to interpret the values.
The layout is as follows, reading from left (high byte) to right (low byte):
Nonstandard or legacy rover binary formats may use a different byte representation; in those cases this is simply a data structure and not a required format.
Copyright 2008-2009 Partner Software, Inc.
| Constructor and Description |
|---|
RoverBlockHeader(RoverBlockCode code,
int count,
int graphicTypeId) |
RoverBlockHeader(RoverShape... shapes) |
RoverBlockHeader(RoverShape shape) |
| Modifier and Type | Method and Description |
|---|---|
static RoverBlockHeader |
fromInt(int value)
Returns a header decoded from a four-byte integer value.
|
RoverBlockCode |
getCode() |
int |
getCount() |
int |
getDrawId() |
int |
toInt()
Returns the header encoded as a four-byte integer value.
|
java.lang.String |
toString() |
public RoverBlockHeader(RoverBlockCode code, int count, int graphicTypeId)
public RoverBlockHeader(RoverShape shape)
public RoverBlockHeader(RoverShape... shapes)
public static RoverBlockHeader fromInt(int value)
public java.lang.String toString()
toString in class java.lang.Objectpublic int toInt()
public RoverBlockCode getCode()
public int getCount()
public int getDrawId()