+ tui.log_msg("play mode commands:");
+ tui.log_msg("w, a, s, d - move avatar");
+ tui.log_msg("f - flatten surroundings");
+ tui.log_msg("e - write following ASCII character");
+ tui.log_msg("c - switch to chat mode");
+ tui.log_msg("? - switch to study mode");
+ tui.log_msg("");
+ tui.log_msg("study mode commands:");
+ tui.log_msg("w, a, s, d - move question mark");
+ tui.log_msg("A - annotate terrain");
+ tui.log_msg("c - switch to chat mode");
+ tui.log_msg("p - switch to play mode");
+ tui.log_msg("");
+ },
+ draw_info: function() {
+ terminal.drawBox(this.height_turn_line, this.window_width, terminal.rows - this.height_turn_line - this.height_input, this.window_width);
+ let lines = this.msg_into_lines_of_width(explorer.get_info(), this.window_width);
+ for (let y = this.height_turn_line, i = 0; y < terminal.rows && i < lines.length; y++, i++) {
+ terminal.write(y, this.window_width, lines[i]);
+ }
+ },
+ full_refresh: function() {
+ this.draw_map();
+ this.draw_turn_line();
+ if (this.mode == 'study' || this.mode == 'annotate') {
+ this.draw_info();
+ } else {
+ this.draw_history();
+ }
+ this.draw_input();
+ this.refresh();