mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00

The audio is in raw format, like the rest of the sounds in the Amiga port. Overall: - A new class has been created, NightlongVideoDecoder, which encapsulates the PC and Amiga video playing functionality - The AnimManager class has been moved into animmanager.* - The AnimType class has been moved from anim.* to animtype.*
61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef TRECISION_ANIMTYPE_H
|
|
#define TRECISION_ANIMTYPE_H
|
|
|
|
#include "trecision/struct.h"
|
|
|
|
namespace Trecision {
|
|
class TrecisionEngine;
|
|
|
|
struct ATFHandle {
|
|
int16 _curFrame;
|
|
int16 _lastFrame;
|
|
uint16 _object;
|
|
uint16 _status;
|
|
SAnim *_curAnim;
|
|
};
|
|
|
|
class AnimTypeManager {
|
|
private:
|
|
TrecisionEngine *_vm;
|
|
void executeAtFrameDoit(ATFHandle *h, int doit, uint16 obj);
|
|
void processAtFrame(ATFHandle *h, int type, int atf);
|
|
|
|
ATFHandle _animType[3];
|
|
int _oneSpeakDialogCount;
|
|
|
|
public:
|
|
AnimTypeManager(TrecisionEngine *vm);
|
|
~AnimTypeManager();
|
|
|
|
void init(uint16 an, uint16 obj);
|
|
void next();
|
|
void end(int type);
|
|
void handler(int type);
|
|
|
|
};
|
|
|
|
} // End of namespace Trecision
|
|
#endif
|
|
|