Uses of Class
edu.uky.cs.nil.tt.world.Variable
Packages that use Variable
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 Variable in edu.uky.cs.nil.tt.world
Classes in edu.uky.cs.nil.tt.world that implement interfaces with type arguments of type VariableModifier and TypeClassDescriptionfinal classFields in edu.uky.cs.nil.tt.world declared as VariableModifier and TypeFieldDescriptionfinal VariableAssignment.variableThe variable that is being assigned a valuefinal VariableEffect.variableThe variable whose value will be modifiedMethods in edu.uky.cs.nil.tt.world that return VariableModifier and TypeMethodDescriptionAssetBuilder.addVariable(Signature signature, String encoding, String description) Defines a newvariable.World.getVariable(int id) Returns the variable defined in this story world which has the givenID number.World.getVariable(Signature signature) Returns the variable defined in this story world which has the given signature.World.getVariable(String name) Returns the variable defined in this story world which has the givenname.World.requireVariable(int id) Returns the variable defined in this story world which has the givenID numberor throws an exception if it does not exist.World.requireVariable(Signature signature) Returns the variable defined in this story world which has the given signature or throws an exception if it does not exist.World.requireVariable(String name) Returns the variable defined in this story world which has the givennameor throws an exception if it does not exist.Variable.setDescription(String description) protected VariableVariable.setEncoding(String encoding) Returns a new variable that is the same as this variable, except that its value encoding is the given value.protected VariableVariable.setID(int id) protected VariableVariable.setSignature(Signature signature) Variable.substitute(Function<Object, Object> substitution) If this story world contains a variable matching the name of the given variable, the variable 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 VariableModifier and TypeMethodDescriptionWorld.getVariables()Returns an unmodifiable list of all variables defined in this story world ordered by the ID numbers.Methods in edu.uky.cs.nil.tt.world with parameters of type VariableModifier and TypeMethodDescriptionintbooleanReturns true if the given variable is defined in this story world.Returns the value assigned to the given variable, or null if the variable does not exist in this state or is assigned a null value.LogicalWorld.getInitialValue(Variable variable) Returns the value a given variable has when the story first begins.LogicalWorld.getVisibility(Variable variable) Returns a logical proposition that defines when theplayercan see a varaiable's value.booleanChecks whether the given role can see the value of the given variable in the given state.voidLogicalWorld.setInitialValue(Variable variable, Value value) Sets the value a given variable has when the story first begins.voidLogicalWorld.setVisibility(Variable variable, Proposition visibility) Sets the logical proposition that defines when theplayercan see the value of a variable.If this story world contains a variable matching the name of the given variable, the variable from this story world world with that name is returned; otherwise, an exception is thrown.Describer.Rule.variableIs(Variable variable) Returns a new rule identical to this one, except thatDescriber.Key.VARIABLEmust have the given value.Constructors in edu.uky.cs.nil.tt.world with parameters of type VariableModifierConstructorDescriptionAssignment(Variable variable, Value value) Constructs a new assignment from a variable and value with a blank description.Assignment(Variable variable, Value value, String description) Constructs a new assignment from a variable, value, and description.Effect(Proposition condition, Variable variable, Expression value) Constructs a new effect with a condition, variable, and value.Effect(Variable variable, Expression value) Constructs a new effect with a variable and value and whose condition isnull.