Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACCESS: Implement decoding of game cursors
- Loading branch information
1 parent
4d24209
commit 857f944
Showing
9 changed files
with
221 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* ScummVM - Graphic Adventure Engine | ||
* | ||
* ScummVM is the legal property of its developers, whose names | ||
* are too numerous to list here. Please refer to the COPYRIGHT | ||
* file distributed with this source distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
*/ | ||
|
||
#include "graphics/palette.h" | ||
#include "access/access.h" | ||
#include "access/graphics.h" | ||
#include "access/resources.h" | ||
|
||
namespace Access { | ||
|
||
GraphicsManager::GraphicsManager(AccessEngine *vm) : _vm(vm) { | ||
_vesaCurrentWin = 0; | ||
_currentPanel = 0; | ||
_hideFlag = true; | ||
} | ||
|
||
void GraphicsManager::setPanel(int num) { | ||
assert(num < 4); | ||
_currentPanel = num; | ||
_msVirtualOffset = _virtualOffsetsTable[num]; | ||
} | ||
|
||
void GraphicsManager::setPalettte() { | ||
g_system->getPaletteManager()->setPalette(INITIAL_PALETTE, 0, 18); | ||
} | ||
|
||
} // End of namespace Access |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* ScummVM - Graphic Adventure Engine | ||
* | ||
* ScummVM is the legal property of its developers, whose names | ||
* are too numerous to list here. Please refer to the COPYRIGHT | ||
* file distributed with this source distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
*/ | ||
|
||
#ifndef ACCESS_GRAPHICS_H | ||
#define ACCESS_GRAPHICS_H | ||
|
||
#include "common/rect.h" | ||
#include "graphics/surface.h" | ||
|
||
namespace Access { | ||
|
||
class AccessEngine; | ||
|
||
class GraphicsManager { | ||
private: | ||
AccessEngine *_vm; | ||
public: | ||
int _vesaCurrentWin; | ||
int _currentPanel; | ||
Common::Point _msVirtualOffset; | ||
Common::Point _virtualOffsetsTable[4]; | ||
bool _hideFlag; | ||
public: | ||
GraphicsManager(AccessEngine *vm); | ||
|
||
void setPanel(int num); | ||
void setPalettte(); | ||
}; | ||
|
||
} // End of namespace Access | ||
|
||
#endif /* ACCESS_GRAPHICS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters