Uses of Class
edu.uky.cs.nil.tt.world.Entity
Packages that use Entity
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 Entity in edu.uky.cs.nil.tt.world
Classes in edu.uky.cs.nil.tt.world that implement interfaces with type arguments of type EntityModifier and TypeClassDescriptionfinal classAn entity is anassetthat represents a character, object, place, or idea in astory world.Methods in edu.uky.cs.nil.tt.world that return EntityModifier and TypeMethodDescriptionDefines a newentity.World.getEntity(int id) Returns the entity defined in this story world which has the givenID number.Returns the entity defined in this story world which has the givenname.protected Entity[]LogicalWorld.getEntityDescriptions(Role role, Turn[] history, State state) Returns an array of entitiesvisibleto a given role which haveuseful descriptions.World.getPlayer()Returns the entity the represents theplayercharacter in this story world.World.requireEntity(int id) Returns the entity defined in this story world which has the givenID numberor throws an exception if it does not exist.World.requireEntity(String name) Returns the entity defined in this story world which has the givennameor throws an exception if it does not exist.protected EntityReturns a new entity that is the same as this entity, except this itscodeis the given value.Entity.setDescription(String description) protected EntityEntity.setID(int id) Entity.substitute(Function<Object, Object> substitution) Entity.toEntity()default EntityValue.toEntity()If this value represents anEntity, this method returns that entity; all other values are converted to {code null}.If this story world contains an entity matching the name of the given entity, the entity 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 EntityModifier and TypeMethodDescriptionAction.getConsenting()Returns an unmodifiable set of entities in the story world representing the characters who need to agree to take the action.Status.getDescriptions()World.getEntities()Returns an unmodifiable list of all entities defined in this story world ordered by the ID numbers.Methods in edu.uky.cs.nil.tt.world with parameters of type EntityModifier and TypeMethodDescriptionDefines a newaction.intbooleanReturns true if the given entity is defined in this story world.Returns a new rule identical to this one, except thatDescriber.Key.ENTITYmust have the given value.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.LogicalWorld.getVisibility(Entity entity) Returns a logical proposition that defines when theplayercan see an entity.booleanChecks whether the given role can see the given entity in the given state.voidLogicalWorld.setVisibility(Entity entity, Proposition visibility) Sets the logical proposition that defines when theplayercan see an entity.If this story world contains an entity matching the name of the given entity, the entity from this story world world with that name is returned; otherwise, an exception is thrown.Method parameters in edu.uky.cs.nil.tt.world with type arguments of type EntityModifier and TypeMethodDescriptionprotected 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.Constructors in edu.uky.cs.nil.tt.world with parameters of type EntityModifierConstructorDescriptionConstructs a new action.Status(String world, Role role, Turn[] history, State state, Ending ending, Entity[] descriptions, Turn[] choices) Constructs a status.Constructor parameters in edu.uky.cs.nil.tt.world with type arguments of type EntityModifierConstructorDescriptionLogicalWorld(String name, Collection<Entity> entities, Collection<Variable> variables, Collection<Action> actions, Collection<Ending> endings) Constructs a logical world model with the given assets.World(String name, Collection<Entity> entities, Collection<Variable> variables, Collection<Action> actions, Collection<Ending> endings) Constructs a story world from a unique name and sets of assets.WorldModel(String name, Collection<Entity> entities, Collection<Variable> variables, Collection<Action> actions, Collection<Ending> endings) Constructs a story world model with the assets needed to construct astory world.