gecco.communication.messages
Class UnitPropertyUpdateMessage
java.lang.Object
|
+--gecco.communication.messages.Message
|
+--gecco.communication.messages.UnitPropertyUpdateMessage
- public class UnitPropertyUpdateMessage
- extends Message
This message is put in the send queue on the server part of the
communication when a unit property is updated.
- Author:
- Karl Hasselström
Method Summary |
static Message |
read(DataInput in)
This factory method reads a message of this type without an
initial ID from the input stream, and returns a
Message object. |
void |
write(DataOutput out)
This method writes the message to the given
DataOutput . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
handle
public int handle
- Description of the Field
key
public String key
- Description of the Field
newValue
public String newValue
- Description of the Field
UnitPropertyUpdateMessage
public UnitPropertyUpdateMessage(int handle,
String key,
String newValue)
- Constructor for the UnitPropertyChangedMessage object
- Parameters:
handle
- Description of Parameterkey
- Description of ParameternewValue
- Description of Parameter
write
public void write(DataOutput out)
throws IOException
- This method writes the message to the given
DataOutput
.
- Overrides:
write
in class Message
- Parameters:
out
- The output stream.- Throws:
IOException
- In case something goes wrong.
read
public static Message read(DataInput in)
throws IOException
- This factory method reads a message of this type without an
initial ID from the input stream, and returns a
Message
object.
- Parameters:
in
- The input stream.- Returns:
- An instance of
Message
.