aboutsummaryrefslogtreecommitdiff
path: root/scumm/actor.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-12 02:29:50 +0000
committerTravis Howell2005-04-12 02:29:50 +0000
commitdea27e2c63bbedcc1dfb51bfb1c0ace902281e2e (patch)
tree130ba16262b7e4618f95fd10b5a61fcc6aac43c2 /scumm/actor.cpp
parente096cf83f28025233728f4e7b6cf80ee85ca6aad (diff)
downloadscummvm-rg350-dea27e2c63bbedcc1dfb51bfb1c0ace902281e2e.tar.gz
scummvm-rg350-dea27e2c63bbedcc1dfb51bfb1c0ace902281e2e.tar.bz2
scummvm-rg350-dea27e2c63bbedcc1dfb51bfb1c0ace902281e2e.zip
Work in progress on opcodeE0 for HE games.
Cleanup. svn-id: r17560
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r--scumm/actor.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index f9cf50eb18..00ebacd764 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -578,6 +578,29 @@ void Actor::setDirection(int direction) {
_needRedraw = true;
}
+void Actor::drawActorToBackBuf(int x, int y) {
+ int curTop = _top;
+ int curBottom = _bottom;
+
+ _pos.x = x;
+ _pos.y = y;
+
+ _drawToBackBuf = true;
+ _needRedraw = true;
+ drawActorCostume();
+
+ _drawToBackBuf = false;
+ _needRedraw = true;
+ drawActorCostume();
+ _needRedraw = false;
+
+ if (_top > curTop)
+ _top = curTop;
+ if (_bottom < curBottom)
+ _bottom = curBottom;
+}
+
+
void Actor::putActor(int dstX, int dstY, byte newRoom) {
if (_visible && _vm->_currentRoom != newRoom && _vm->getTalkingActor() == _number) {
_vm->stopTalk();