class Fable::Choice

Attributes

index[RW]

The original index into current_choices list on the Story when this choice was generated, for convenience

invisible_default[RW]
invisible_default?[RW]
original_thread_index[RW]
source_path[RW]

Get the path to the original choice point - where was this choice defined in the story?

target_path[RW]
text[RW]

The main text presented to the player for this choice

thread_at_generation[RW]

Public Instance Methods

path_string_on_choice() click to toggle source

The target path that the story should be diverted to if the choice is chosen

# File lib/fable/choice.rb, line 22
def path_string_on_choice
  return self.target_path.to_s
end
path_string_on_choice=(value) click to toggle source
# File lib/fable/choice.rb, line 26
def path_string_on_choice=(value)
  self.target_path = Path.new(value)
  value
end