From f5fdbcddfb54510ef9f44e4f57d68d84f9055757 Mon Sep 17 00:00:00 2001 From: James Brown Date: Sat, 10 Jun 2006 13:20:29 +0000 Subject: Pop AGIs text.cpp into a class, for later cleanup. svn-id: r23011 --- engines/agi/cycle.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'engines/agi/cycle.cpp') diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp index 49ed883c65..4df9bc910c 100644 --- a/engines/agi/cycle.cpp +++ b/engines/agi/cycle.cpp @@ -98,8 +98,8 @@ void new_room(int n) { game.exit_all_logics = true; - write_status(); - write_prompt(); + _text->write_status(); + _text->write_prompt(); } static void reset_controllers() { @@ -138,7 +138,7 @@ static void interpret_cycle() { game.view_table[0].direction = game.vars[V_ego_dir]; if (game.vars[V_score] != old_score || getflag(F_sound_on) != old_sound) - write_status(); + _text->write_status(); game.vars[V_border_touch_obj] = 0; game.vars[V_border_code] = 0; @@ -203,7 +203,7 @@ int main_cycle() { update_timer(); if (game.ver == 0) { - message_box("Warning: game CRC not listed, assuming AGI version 2.917."); + _text->message_box("Warning: game CRC not listed, assuming AGI version 2.917."); game.ver = -1; } @@ -228,7 +228,7 @@ int main_cycle() { if (key == KEY_STATUSLN) { debug_.statusline = !debug_.statusline; - write_status(); + _text->write_status(); key = 0; } @@ -332,11 +332,11 @@ static int play_game() { if (getvar(V_time_delay) == 0 || (1 + clock_count) % getvar(V_time_delay) == 0) { if (!game.has_prompt && game.input_mode == INPUT_NORMAL) { - write_prompt(); + _text->write_prompt(); game.has_prompt = 1; } else if (game.has_prompt && game.input_mode == INPUT_NONE) { - write_prompt(); + _text->write_prompt(); game.has_prompt = 0; } -- cgit v1.2.3