diff options
author | James Brown | 2006-06-10 13:20:29 +0000 |
---|---|---|
committer | James Brown | 2006-06-10 13:20:29 +0000 |
commit | f5fdbcddfb54510ef9f44e4f57d68d84f9055757 (patch) | |
tree | 90a989c02e2ac9979c6f5db618c930ca665eea4c /engines/agi/cycle.cpp | |
parent | db3a66569dc2241e685f62cd6fa239c34f9b8f74 (diff) | |
download | scummvm-rg350-f5fdbcddfb54510ef9f44e4f57d68d84f9055757.tar.gz scummvm-rg350-f5fdbcddfb54510ef9f44e4f57d68d84f9055757.tar.bz2 scummvm-rg350-f5fdbcddfb54510ef9f44e4f57d68d84f9055757.zip |
Pop AGIs text.cpp into a class, for later cleanup.
svn-id: r23011
Diffstat (limited to 'engines/agi/cycle.cpp')
-rw-r--r-- | engines/agi/cycle.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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; } |