Uses of Class
edu.uky.cs.nil.tt.world.Action
Packages that use Action
Package
Description
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 Action in edu.uky.cs.nil.tt.world
Classes in edu.uky.cs.nil.tt.world that implement interfaces with type arguments of type ActionModifier and TypeClassDescriptionfinal classFields in edu.uky.cs.nil.tt.world declared as ActionModifier and TypeFieldDescriptionfinal ActionTurn.actionThe action that this turn is relevant toMethods in edu.uky.cs.nil.tt.world that return ActionModifier and TypeMethodDescriptionDefines a newaction.World.getAction(int id) Returns the action defined in this story world which has the givenID number.Returns the action defined in this story world which has the given signature.Returns the action defined in this story world which has the givenname.World.requireAction(int id) Returns the action defined in this story world which has the givenID numberor throws an exception if it does not exist.World.requireAction(Signature signature) Returns the action defined in this story world which has the given signature or throws an exception if it does not exist.World.requireAction(String name) Returns the action defined in this story world which has the givennameor throws an exception if it does not exist.protected ActionReturns a new action that is the same as this action, except this itscodeis the given value.protected ActionAction.setConsenting(Set<Entity> consenting) Returns a new action that is the same as this action, except that its consenting characters is the given set.Action.setDescription(String description) protected ActionAction.setID(int id) protected ActionAction.setSignature(Signature signature) Action.substitute(Function<Object, Object> substitution) If this story world contains an action matching the name of the given action, the action 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 ActionModifier and TypeMethodDescriptionWorld.getActions()Returns an unmodifiable list of all actions defined in this story world ordered by the ID numbers.Methods in edu.uky.cs.nil.tt.world with parameters of type ActionModifier and TypeMethodDescriptionReturns a new rule identical to this one, except thatDescriber.Key.ACTIONmust have the given value.intbooleanReturns true if the given action is defined in this story world.Effect[]LogicalWorld.getEffects(Action action) Returns an array of effects which express how an action modifies the state of a story world when it happens.LogicalWorld.getPrecondition(Action action) Returns a logical proposition that defines when an action can be taken.LogicalWorld.getVisibility(Action action) Returns a logical proposition that defines when theplayerwould see an action happen.booleanLogicalWorld.isAvailable(Role role, Action action, State state) Checks whether the given action is available is available to the given role in the given state.booleanChecks whether the given action would be seen by the given role if it happened in the given state.voidLogicalWorld.setEffects(Action action, Effect... effects) Sets the arrays of effects which express how an action modifies the state of a story world when it happens.voidLogicalWorld.setPrecondition(Action action, Proposition precondition) Sets the logical proposition that defines when an action can be taken.voidLogicalWorld.setVisibility(Action action, Proposition visibility) Sets the logical proposition that defines when theplayercan see an action happen.If this story world contains an action matching the name of the given action, the action 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 Action