Choice class
A generated Choice from the story. A single ChoicePoint in the Story could potentially generate different Choices dynamically dependent on state, so they're separated.
- Inheritance
-
- Object
- RuntimeObject
- Choice
Constructors
- Choice()
Properties
- debugMetadata ↔ DebugMetadata?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ int
-
The original index into currentChoices list on the
StoryInterface
when this Choice was generated, for convenience.getter/setter pair - isInvisibleDefault ↔ bool
-
getter/setter pair
- originalThreadIndex ↔ int
-
getter/setter pair
- ownDebugMetadata → DebugMetadata
-
no setterinherited
- parent ↔ RuntimeObject?
-
RuntimeObjects can be included in the main Story as a hierarchy.
Usually parents are Container objects. (TODO: Always?)
getter/setter pairinherited
- path → Path
-
no setterinherited
- pathStringOnChoice ↔ String
-
The target path that the Story should be diverted to if
this Choice is chosen.
getter/setter pair
- rootContentContainer → Container?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourcePath ↔ String
-
Get the path to the original choice point - where was this choice defined in the story?
sourcePath : A dot separated path into the story data.
getter/setter pair
-
getter/setter pair
- targetPath ↔ Path?
-
getter/setter pair
- text ↔ String
-
The main text to presented to the player for this Choice.
getter/setter pair
- threadAtGeneration ↔ Thread?
-
getter/setter pair
Methods
-
compactPathString(
Path otherPath) → String -
inherited
-
CompactPathString(
Path otherPath) → String -
inherited
-
convertPathToRelative(
Path globalPath) → Path -
inherited
-
debugLineNumberOfPath(
Path? path) → int? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolvePath(
Path? path) → SearchResult -
inherited
-
setChild<
T extends RuntimeObject> (T? obj, T? value) → void -
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited