Module: TyranoDsl::ParsingWords::ShowCharacter

Includes:
ParsingWordsModule
Defined in:
lib/tyrano_dsl/parsing_words/show_character.rb

Instance Method Summary collapse

Instance Method Details

#show_character(character_name, character_stance, left, top) ⇒ void

This method returns an undefined value.

Parameters:

  • character_name (String)
  • character_stance (String)
  • left (Integer)
  • top (Integer)

Raises:



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/tyrano_dsl/parsing_words/show_character.rb', line 14

def show_character(character_name, character_stance, left, top)
  symbolized_stance = symbolize(character_stance)
  check_character_exist(character_name, symbolized_stance)
  add_parsed_word(
      TyranoDsl::Vocabulary::SHOW_CHARACTER,
      name: character_name,
      stance: symbolized_stance,
      left: left,
      top: top
  )
end