diff options
Diffstat (limited to 'engines/sci/graphics/celobj32.h')
-rw-r--r-- | engines/sci/graphics/celobj32.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/sci/graphics/celobj32.h b/engines/sci/graphics/celobj32.h index 03d950a3c3..70cbd09e7d 100644 --- a/engines/sci/graphics/celobj32.h +++ b/engines/sci/graphics/celobj32.h @@ -122,6 +122,18 @@ struct CelInfo32 { inline bool operator!=(const CelInfo32 &other) { return !(*this == other); } + + inline Common::String toString() const { + if (type == kCelTypeView) { + return Common::String::format("view %u, loop %d, cel %d", resourceId, loopNo, celNo); + } else if (type == kCelTypePic) { + return Common::String::format("pic %u", resourceId); + } else if (kCelTypeColor) { + return Common::String::format("color %d", color); + } else if (type == kCelTypeMem) { + return Common::String::format("mem %04x:%04x", PRINT_REG(bitmap)); + } + } }; class CelObj; |