Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## gecco.communication.messages
Class GameOverMessage

    java.lang.Object
      gecco.communication.messages.Message
          gecco.communication.messages.GameOverMessage

public class GameOverMessage
extends Message

GameOverMessage.java Created: Mon Mar 31 14:24:09 2003

Author:

Constructor Summary
`GameOverMessage(String winner)`

Method Summary
`String` | `getWinner()`
`static Message` | `read(DataInput in)` This factory method reads a message id from the input stream and calls the `read()` factory method of the corresponding subclass, which is responsible for reading the actual data.
`void` | `write(DataOutput out)` This method should write the message to the given `DataOutput`.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### GameOverMessage

    public GameOverMessage(String winner)

Method Detail

### getWinner

    public String getWinner()

### write

    public void write(DataOutput out)
               throws IOException

  Description copied from class: `Message`
  This method should write the message to the given `DataOutput`.

  Specified by:
    `write` in class `Message`
  Parameters:
    `out` - The output stream.
  Throws:
    `IOException`

### read

    public static Message read(DataInput in)
                        throws IOException

  Description copied from class: `Message`
  This factory method reads a message id from the input stream and calls the `read()` factory method of the corresponding subclass, which is responsible for reading the actual data.

  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD