Class: Gamefic::Sdk::Debug::Plot

Inherits:
Plot
  • Object
show all
Defined in:
lib/gamefic-sdk/debug/plot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#main_dirObject (readonly)

Returns the value of attribute main_dir.



5
6
7
# File 'lib/gamefic-sdk/debug/plot.rb', line 5

def main_dir
  @main_dir
end

Instance Method Details

#action(command, *queries, &proc) ⇒ Object



17
18
19
20
21
# File 'lib/gamefic-sdk/debug/plot.rb', line 17

def action(command, *queries, &proc)
  act = Gamefic::Sdk::Debug::Action.new(command, *queries, &proc)
  add_action act
  act
end

#post_initializeObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/gamefic-sdk/debug/plot.rb', line 6

def post_initialize
  meta :debug, Query::Text.new("unused") do |actor, text|
    unused = []
    actions.each { |a|
      if !a.standard? and !a.executed?
        unused.push "#{a.verb}:#{a.source_location}"
      end
    }
    actor.tell "#{unused.join("\r\n")}"
  end
end