Uses of Class
edu.uky.cs.nil.tt.world.Turn
Packages that use Turn
Package
Description
Tandem Tales is a platform that enables short, paired storytelling
exercises between two agents over a network.
Story
worlds define the objects, concepts, and actions that
exist in a story, and story world models define the logic
for when actions can happen, how actions change the current state of world,
when endings happen, etc.-
Uses of Turn in edu.uky.cs.nil.tt
Fields in edu.uky.cs.nil.tt declared as TurnModifier and TypeFieldDescriptionfinal TurnSession.Event.turnThe turn which occurred, or null if this event records the initial state of the story worldMethods in edu.uky.cs.nil.tt that return types with arguments of type TurnModifier and TypeMethodDescriptionAgent.getChoices()Returns the current list of turns this agent can take in their session (which may be empty), or null if this agent has not yet been matched.Client.getChoices()If it is currently this client's turn to act, this method returns the list ofturnsthey can take next.Client.getHistory()Returns the list of allturnsthat have been taken so far in this client's session that this client has observed.Methods in edu.uky.cs.nil.tt with parameters of type TurnModifier and TypeMethodDescriptionprotected voidAdds a new event to this session, which records a turn in the story, the actual and player perceived states after that turn, and the time it occurred.protected voidThis method is called each time a new turn is taken in the this agent's session. -
Uses of Turn in edu.uky.cs.nil.tt.world
Methods in edu.uky.cs.nil.tt.world that return TurnModifier and TypeMethodDescriptionprotected Turn[]LogicalWorld.getChoices(Role role, Turn[] history, State state, Ending ending) Returns an array of choices available to a given role based on the current state of a story world, or null if no choices are available.Turn.setDescription(String description) Returns a new turn that is the same as this turn, except this itsdescriptionis the given value.Methods in edu.uky.cs.nil.tt.world that return types with arguments of type TurnModifier and TypeMethodDescriptionStatus.getChoices()Status.getHistory()Returns an unmodifiable list of all turns that have happened so far in the session.Methods in edu.uky.cs.nil.tt.world with parameters of type TurnModifier and TypeMethodDescriptionprotected static final RoleDetermines whose turn it is based on the history of a session.protected Turn[]LogicalWorld.getChoices(Role role, Turn[] history, State state, Ending ending) Returns an array of choices available to a given role based on the current state of a story world, or null if no choices are available.protected EndingDetermines whether the story has ended and, if so, returns the ending.protected StringLogicalWorld.getEntityDescription(Role role, Turn[] history, State state, Entity entity) Returns a longer, more helpful description of an entity based on the current state of a story world.protected Entity[]LogicalWorld.getEntityDescriptions(Role role, Turn[] history, State state) Returns an array of entitiesvisibleto a given role which haveuseful descriptions.protected StatusCalculates the ending (if any), entity descriptions, and turns available to include in a status.LogicalWorld.transition(Status status, State actual, Turn turn) abstract StatusWorldModel.transition(Status status, State actual, Turn turn) Given the current status of a story world (actual or perceived), the actual current status of a story world, and a turn, this method simulates that turn and returns the new perceived status of the story world.Constructors in edu.uky.cs.nil.tt.world with parameters of type Turn