AVALANCHE: Move strf() from Avalanche to Gyro.

This commit is contained in:
uruk 2013-08-02 12:18:01 +02:00
parent 599aa9a063
commit 544cf37757
4 changed files with 7 additions and 14 deletions

View File

@ -170,11 +170,6 @@ void AvalancheEngine::quit() {
cursor_on();
}
Common::String AvalancheEngine::strf(int32 x) {
Common::String q = Common::String::format("%d", x);
return q;
}
// Needed in dos_shell(). TODO: Remove later.
Common::String AvalancheEngine::command_com() {
warning("STUB: command_com()");

View File

@ -161,8 +161,6 @@ private:
void quit();
Common::String strf(int32 x);
Common::String command_com();
void explain(byte error);

View File

@ -273,6 +273,11 @@ Gyro::~Gyro() {
}
Common::String Gyro::strf(int32 x) {
Common::String q = Common::String::format("%d", x);
return q;
}
void Gyro::newpointer(byte m) {
if (m == cmp) return;
cmp = m;
@ -339,11 +344,6 @@ void Gyro::blip() {
warning("STUB: Gyro::blip()");
}
Common::String Gyro::strf(int32 x) {
Common::String q = Common::String::format("%d", x);
return q;
}
void Gyro::shadow(int16 x1, int16 y1, int16 x2, int16 y2, byte hc, byte sc) {
warning("STUB: Gyro::shadow()");
}

View File

@ -611,6 +611,8 @@ public:
~Gyro();
Common::String strf(int32 x);
void newpointer(byte m);
void wait(); /* makes hourglass */
@ -633,8 +635,6 @@ public:
void blip();
Common::String strf(int32 x);
void shbox(int16 x1, int16 y1, int16 x2, int16 y2, Common::String t);
void newgame();