Class Start

All Implemented Interfaces:
Timestamped

public class Start extends Message
The start message is sent from the server to an agent when a partner has been found and their session begins.
Author:
Stephen G. Ware
  • Field Details

    • world

      public final TitledWorld world
      The story world (with its title and description) in which the session will take place
    • role

      public final Role role
      The role the recipient of this message will have in the session
  • Constructor Details

    • Start

      public Start(TitledWorld world, Role role)
      Constructs a new start message with the given story world the session will take place in.
      Parameters:
      world - the story world the session will take place in
      role - the role the recipient of this message will play in the session
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • verify

      public void verify()
      Description copied from class: Message
      Checks that this message is correctly configured and throws an exception if not. This method should be called soon after the message has been parsed. It should check that all the necessary fields are set and that their values are legal values.
      Overrides:
      verify in class Message