From e11c17a005a1efb1be077ceb856c48446e11d95c Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sun, 21 Dec 2008 15:42:47 +0000 Subject: Moved more GfxObj management to Gfx object. svn-id: r35466 --- engines/parallaction/gfxbase.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'engines/parallaction/gfxbase.cpp') diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp index 9d4389855e..58cc1e2728 100644 --- a/engines/parallaction/gfxbase.cpp +++ b/engines/parallaction/gfxbase.cpp @@ -103,6 +103,12 @@ GfxObj* Gfx::loadAnim(const char *name) { return obj; } +GfxObj* Gfx::loadCharacterAnim(const char *name) { + GfxObj *obj = loadAnim(name); + obj->setFlags(kGfxObjCharacter); + obj->clearFlags(kGfxObjNormal); + return obj; +} GfxObj* Gfx::loadGet(const char *name) { GfxObj *obj = _disk->loadStatic(name); @@ -140,6 +146,18 @@ void Gfx::clearGfxObjects(uint filter) { } +void Gfx::freeLocationObjects() { + freeDialogueObjects(); + clearGfxObjects(kGfxObjNormal); + freeLabels(); +} + +void Gfx::freeCharacterObjects() { + freeDialogueObjects(); + clearGfxObjects(kGfxObjCharacter); +} + + void Gfx::loadGfxObjMask(const char *name, GfxObj *obj) { Common::Rect rect; obj->getRect(0, rect); -- cgit v1.2.3