Uses of Class
edu.uky.cs.nil.tt.world.Ending
Packages that use Ending
Package
Description
Tandem Tales is a platform that enables short, paired storytelling
exercises between two agents over a network.
The IO (input/output) package defines the various
message
types that can be sent between a server and client and provide some utilities
for serializing and deserializing objects as JSON.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 Ending in edu.uky.cs.nil.tt
Fields in edu.uky.cs.nil.tt declared as EndingModifier and TypeFieldDescriptionfinal EndingSession.Result.endingOne of the endings defined by the story world, or null if this session did not reach one of the pre-defined endingsMethods in edu.uky.cs.nil.tt with parameters of type EndingModifier and TypeMethodDescriptionprotected voidThis method is called once if the story reaches one of itspre-defined endings. -
Uses of Ending in edu.uky.cs.nil.tt.io
Fields in edu.uky.cs.nil.tt.io declared as EndingModifier and TypeFieldDescriptionfinal EndingStop.endingOne of thepre-defined endingsfrom the story world, or null if this session did not reach one of those endingsConstructors in edu.uky.cs.nil.tt.io with parameters of type Ending -
Uses of Ending in edu.uky.cs.nil.tt.world
Classes in edu.uky.cs.nil.tt.world that implement interfaces with type arguments of type EndingModifier and TypeClassDescriptionfinal classAn ending is asigned assetthat represents one of several possible ways a story can end.Methods in edu.uky.cs.nil.tt.world that return EndingModifier and TypeMethodDescriptionDefines a newending.protected EndingDetermines whether the story has ended and, if so, returns the ending.Status.getEnding()Returns the ending the session's story has reached, or null if the story has not yet ended.World.getEnding(int id) Returns the ending defined in this story world which has the givenID number.Returns the ending defined in this story world which has the given signature.Returns the ending defined in this story world which has the givenname.World.requireEnding(int id) Returns the ending defined in this story world which has the givenID numberor throws an exception if it does not exist.World.requireEnding(Signature signature) Returns the ending defined in this story world which has the given signature or throws an exception if it does not exist.World.requireEnding(String name) Returns the ending defined in this story world which has the givennameor throws an exception if it does not exist.protected EndingReturns a new ending that is the same as this ending, except this itscodeis the given value.Ending.setDescription(String description) protected EndingEnding.setID(int id) protected EndingEnding.setSignature(Signature signature) Ending.substitute(Function<Object, Object> substitution) If this story world contains an ending matching the name of the given ending, the ending from this story world world with that name is returned; otherwise, an exception is thrown.Methods in edu.uky.cs.nil.tt.world that return types with arguments of type EndingModifier and TypeMethodDescriptionWorld.getEndings()Returns an unmodifiable list of all endings defined in this story world ordered by the ID numbers.Methods in edu.uky.cs.nil.tt.world with parameters of type EndingModifier and TypeMethodDescriptionintbooleanReturns true if the given ending is defined in this story world.Returns a new rule identical to this one, except thatDescriber.Key.ENDINGmust have the given value.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.LogicalWorld.getCondition(Ending ending) Returns a logical proposition that defines when an ending should occur.voidLogicalWorld.setCondition(Ending ending, Proposition condition) Sets the logical proposition that defines when an ending should occur.If this story world contains an ending matching the name of the given ending, the ending from this story world world with that name is returned; otherwise, an exception is thrown.Constructors in edu.uky.cs.nil.tt.world with parameters of type Ending