aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/computer.h
diff options
context:
space:
mode:
authorD G Turner2014-05-17 15:07:51 +0100
committerD G Turner2014-05-17 15:09:46 +0100
commit2126bef17a174a1544225be89c9d56053622a107 (patch)
treef71b8fc76360525c9b2a862df6e21e8ce4bd2207 /engines/hopkins/computer.h
parent16152cf1ea7807546cc40c8ba094ce874e2f877a (diff)
downloadscummvm-rg350-2126bef17a174a1544225be89c9d56053622a107.tar.gz
scummvm-rg350-2126bef17a174a1544225be89c9d56053622a107.tar.bz2
scummvm-rg350-2126bef17a174a1544225be89c9d56053622a107.zip
HOPKINS: Further cleanup in ComputerManager class.
Have simplified the parsing of the COMPUTAN.TXT file prior to looking at supporting the Polish file format variant. These change should have no functional difference, but improve the code by removing a set-but-unused bool in the MenuItem structure, fixing a number of repeated "magic" values to be explicit as various buffer sizes and replacing usage of strcpy with the safer version from our Common code etc.
Diffstat (limited to 'engines/hopkins/computer.h')
-rw-r--r--engines/hopkins/computer.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/hopkins/computer.h b/engines/hopkins/computer.h
index e8857a234b..ba50dca4cf 100644
--- a/engines/hopkins/computer.h
+++ b/engines/hopkins/computer.h
@@ -31,22 +31,22 @@ namespace Hopkins {
class HopkinsEngine;
-struct MenuItem {
- bool _actvFl;
- int _lineSize;
- char _line[90];
-};
-
-struct ScoreItem {
- Common::String _name;
- Common::String _score;
-};
-
enum ComputerEnum { COMPUTER_HOPKINS = 1, COMPUTER_SAMANTHA = 2, COMPUTER_PUBLIC = 3 };
class ComputerManager {
private:
HopkinsEngine *_vm;
+
+ struct MenuItem {
+ int _lineSize;
+ char _line[90];
+ };
+
+ struct ScoreItem {
+ Common::String _name;
+ Common::String _score;
+ };
+
MenuItem _menuText[50];
char _inputBuf[200];
ScoreItem _score[6];
@@ -84,14 +84,14 @@ private:
void displayLives();
void displayBricks();
void displayGamesSubMenu();
- int displayHiscores();
+ int displayHiscores();
void displayHiscoreLine(const byte *objectData, int x, int y, int curChar);
void displayMessage(int xp, int yp, int textIdx);
void displayScore();
void displayScoreChar(int charPos, int charDisp);
void getScoreName();
void playBreakout();
- int moveBall();
+ int moveBall();
void saveScore();
void checkBallCollisions();