aboutsummaryrefslogtreecommitdiff
path: root/sword1/screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'sword1/screen.h')
-rw-r--r--sword1/screen.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/sword1/screen.h b/sword1/screen.h
index 741eb4992f..3c7326e8f4 100644
--- a/sword1/screen.h
+++ b/sword1/screen.h
@@ -24,6 +24,10 @@
#include "sworddefs.h"
+class OSystem;
+
+namespace Sword1 {
+
#define MAX_FORE 20
#define MAX_BACK 20
#define MAX_SORT 20
@@ -57,15 +61,14 @@ struct RoomDef {
class ResMan;
class ObjectMan;
-class SwordText; // Text objects use sprites that are created internally at run-time
- // the buffer belongs to SwordText, so we need a reference here.
-class OSystem;
+class Text; // Text objects use sprites that are created internally at run-time
+ // the buffer belongs to Text, so we need a reference here.
-class SwordScreen {
+class Screen {
public:
- SwordScreen(OSystem *system, ResMan *pResMan, ObjectMan *pObjMan);
- void useTextManager(SwordText *pTextMan);
- ~SwordScreen(void);
+ Screen(OSystem *system, ResMan *pResMan, ObjectMan *pObjMan);
+ void useTextManager(Text *pTextMan);
+ ~Screen(void);
void draw(void);
void quitScreen(void);
@@ -114,7 +117,7 @@ private:
OSystem *_system;
ResMan *_resMan;
ObjectMan *_objMan;
- SwordText *_textMan;
+ Text *_textMan;
uint16 _currentScreen;
uint8 *_screenBuf;
@@ -143,5 +146,7 @@ private:
// mainloop that no further fading is necessary.
};
+} // End of namespace Sword1
+
#endif //BSSCREEN_H