aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/actor.cpp
diff options
context:
space:
mode:
authorjohndoe1232015-11-24 00:10:10 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitfa17f684da1da7fded805746b75c454502ffe683 (patch)
tree1e668515abccf6455299a5b9fbadc2c5b6affd98 /engines/illusions/actor.cpp
parent09bbb482a8ccdfb8e36128d40364900b99aa2a13 (diff)
downloadscummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.tar.gz
scummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.tar.bz2
scummvm-rg350-fa17f684da1da7fded805746b75c454502ffe683.zip
ILLUSIONS: DUCKMAN: Start implementing the menu system
Still work-in-progress, missing functionality and buggy Maybe needs some work for BBDOU where this isn't implemented yet.
Diffstat (limited to 'engines/illusions/actor.cpp')
-rw-r--r--engines/illusions/actor.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/illusions/actor.cpp b/engines/illusions/actor.cpp
index bae77c71fc..91929466be 100644
--- a/engines/illusions/actor.cpp
+++ b/engines/illusions/actor.cpp
@@ -929,6 +929,23 @@ void Control::refreshSequenceCode() {
_actor->_seqCodeIp = sequence->_sequenceCode;
}
+void Control::getActorFrameDimensions(WidthHeight &dimensions) {
+ dimensions._width = _actor->_surface->w;
+ dimensions._height = _actor->_surface->h;
+}
+
+void Control::drawActorRect(const Common::Rect r, byte color) {
+ _actor->_surface->fillRect(r, color);
+ _actor->_flags |= 0x4000;
+}
+
+void Control::fillActor(byte color) {
+ debug("FILL %d, %d", _actor->_surface->w, _actor->_surface->h);
+ Common::Rect r = Common::Rect(_actor->_surface->w, _actor->_surface->h);
+ _actor->_surface->fillRect(r, color);
+ _actor->_flags |= 0x4000;
+}
+
void Control::startSequenceActorIntern(uint32 sequenceId, int value, byte *entryTblPtr, uint32 notifyThreadId) {
stopActor();