module TyranoDsl::ParsingWords::SetCharacterStance

Public Instance Methods

set_character_stance(character_name, character_stance) click to toggle source

@param [String] character_name @param [String] character_stance @return [void] @raise [TyranoDsl::TyranoException]

# File lib/tyrano_dsl/parsing_words/set_character_stance.rb, line 7
def set_character_stance(character_name, character_stance)
  symbolized_stance = symbolize(character_stance)
  check_character_exist(character_name, symbolized_stance)

  add_parsed_word(
      TyranoDsl::Vocabulary::SET_CHARACTER_STANCE,
      name: character_name,
      stance: symbolized_stance
  )
end