From ac9b74dd16fb5950cdaa6c540b1e0d2e968ed129 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Mon, 24 Feb 2014 22:43:09 +0700 Subject: ZVISION: Implement subtitle handle class --- engines/zvision/subtitles.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'engines/zvision/subtitles.h') diff --git a/engines/zvision/subtitles.h b/engines/zvision/subtitles.h index 13426e03e4..d14cb6f052 100644 --- a/engines/zvision/subtitles.h +++ b/engines/zvision/subtitles.h @@ -24,6 +24,30 @@ #ifndef ZVISION_SUBTITLES_H #define ZVISION_SUBTITLES_H -// TODO: Implement Subtitles +#include "zvision/zvision.h" + +namespace ZVision { + +class Subtitle { +public: + Subtitle(ZVision *engine, const Common::String &subname); + ~Subtitle(); + + void process(int32 time); +private: + ZVision *_engine; + int32 _areaId; + int16 _subId; + + struct sub { + int start; + int stop; + Common::String sub; + }; + + Common::Array _subs; +}; + +} #endif -- cgit v1.2.3