aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/mads_anim.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-01-30 09:21:07 +0000
committerPaul Gilbert2010-01-30 09:21:07 +0000
commit3285a4ba4d585739577176baddd8f48478d2f229 (patch)
tree86f8e10aab8e619116721398918bca88abf4ce5d /engines/m4/mads_anim.cpp
parent28aee9c5f3462cd72db0b91b7f578649869738d5 (diff)
downloadscummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.tar.gz
scummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.tar.bz2
scummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.zip
Beginnings of a separation of the MADS and M4 engines into separate classes. This will be cleaner then having checks everywhere for whether the game mode is MADS or M4.
svn-id: r47705
Diffstat (limited to 'engines/m4/mads_anim.cpp')
-rw-r--r--engines/m4/mads_anim.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/m4/mads_anim.cpp b/engines/m4/mads_anim.cpp
index 6984308784..954916700c 100644
--- a/engines/m4/mads_anim.cpp
+++ b/engines/m4/mads_anim.cpp
@@ -34,7 +34,7 @@ namespace M4 {
#define TV_NUM_FADE_STEPS 40
#define TV_FADE_DELAY_MILLI 50
-TextviewView::TextviewView(M4Engine *vm):
+TextviewView::TextviewView(MadsM4Engine *vm):
View(vm, Common::Rect(0, 0, vm->_screen->width(), vm->_screen->height())),
_bgSurface(vm->_screen->width(), MADS_SURFACE_HEIGHT),
_textSurface(vm->_screen->width(), MADS_SURFACE_HEIGHT + vm->_font->getHeight() +
@@ -235,7 +235,7 @@ void TextviewView::updateState() {
void TextviewView::scriptDone() {
TextviewCallback fn = _callback;
- M4Engine *vm = _vm;
+ MadsM4Engine *vm = _vm;
// Remove this view from manager and destroy it
_vm->_viewManager->deleteView(this);
@@ -439,7 +439,7 @@ void TextviewView::processText() {
//--------------------------------------------------------------------------
-AnimviewView::AnimviewView(M4Engine *vm):
+AnimviewView::AnimviewView(MadsM4Engine *vm):
View(vm, Common::Rect(0, 0, vm->_screen->width(), vm->_screen->height())),
_bgSurface(vm->_screen->width(), MADS_SURFACE_HEIGHT) {
@@ -642,7 +642,7 @@ void AnimviewView::readNextCommand() {
void AnimviewView::scriptDone() {
AnimviewCallback fn = _callback;
- M4Engine *vm = _vm;
+ MadsM4Engine *vm = _vm;
// Remove this view from manager and destroy it
_vm->_viewManager->deleteView(this);
@@ -714,7 +714,7 @@ void AnimviewView::processCommand() {
}
}
-AAFile::AAFile(const char *resourceName, M4Engine* vm): MadsPack(resourceName, vm) {
+AAFile::AAFile(const char *resourceName, MadsM4Engine* vm): MadsPack(resourceName, vm) {
Common::MemoryReadStream stream1(*getItemStream(1));
Common::MemoryReadStream stream2(*getItemStream(2));