lib/gamebox/core/behavior.rb
# Dispatches reactions to helper methods based on name.
# See BehaviorDefinition to see how to override this.
# 
# @see BehaviorDefinition
# @see Actor#react_to
Dispatches reactions to helper methods based on name.
See BehaviorDefinition to see how to override this.
Dispatches reactions to helper methods based on name . See BehaviorDefinition to see how to override this .
def react_to(message_type, *opts, &blk)
    if @message_handlers && @message_handlers.include?(message_type)
      send message_type, *opts, &blk
    end
  end
def react_to ( message_type , * opts , & blk ) if @message_handlers && @message_handlers . include? ( message_type ) send message_type , * opts , & blk end end
Dispatches reactions to helper methods based on name.
Dispatches reactions to helper methods based on name .
message_type
<not_specific>
opts
<not_specific>
blk
<not_specific>
see
None
see
None