Class Connect
java.lang.Object
edu.uky.cs.nil.tt.io.Message
edu.uky.cs.nil.tt.io.Connect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAdvertises that a specific story world and agent pair is waiting for a match. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<Database.Entry> A list ofentriesgiving the names and descriptions of the publicly listed agents available on this serverfinal Connect.Available[]A list ofavailableworld/agent pairs that lets an agent know whether a specific combination of a story world and agent is immediately available for playfinal StringThe server's software versionfinal List<Database.Entry> A list ofentriesgiving the names and descriptions of the publicly listed worlds available on this server -
Constructor Summary
ConstructorsConstructorDescriptionConnect(List<Database.Entry> worlds, List<Database.Entry> agents, Connect.Available[] available) Constructs a new connect message with a given list of worlds and agents. -
Method Summary
-
Field Details
-
version
The server's software version -
worlds
A list ofentriesgiving the names and descriptions of the publicly listed worlds available on this server -
agents
A list ofentriesgiving the names and descriptions of the publicly listed agents available on this server -
available
A list ofavailableworld/agent pairs that lets an agent know whether a specific combination of a story world and agent is immediately available for play
-
-
Constructor Details
-
Connect
public Connect(List<Database.Entry> worlds, List<Database.Entry> agents, Connect.Available[] available) Constructs a new connect message with a given list of worlds and agents.- Parameters:
worlds- a list of the names and descriptions of worlds available on the serveragents- a list of the names and descriptions of agents available on the serveravailable- a list of currently available world/agent pairs
-
-
Method Details
-
toString
-
verify
public void verify()Description copied from class:MessageChecks 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.
-