2015-09-12 23:48:13 +00:00
|
|
|
/* 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 2
|
|
|
|
* 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, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BLADERUNNER_LIGHTS_H
|
|
|
|
#define BLADERUNNER_LIGHTS_H
|
|
|
|
|
|
|
|
#include "bladerunner/bladerunner.h"
|
|
|
|
#include "bladerunner/color.h"
|
|
|
|
#include "bladerunner/light.h"
|
|
|
|
|
|
|
|
#include "common/stream.h"
|
|
|
|
|
|
|
|
namespace BladeRunner {
|
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
class Lights {
|
2016-09-19 22:33:06 +00:00
|
|
|
#if _DEBUG
|
|
|
|
friend class BladeRunnerEngine;
|
|
|
|
#endif
|
2016-09-10 16:16:17 +00:00
|
|
|
BladeRunnerEngine *_vm;
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
Color _ambientLightColor;
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
int _lightsCount;
|
|
|
|
Light *_lights;
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
int _frame;
|
|
|
|
//char gap[28];
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
public:
|
|
|
|
Lights(BladeRunnerEngine *vm);
|
|
|
|
~Lights();
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
void read(Common::ReadStream *stream, int framesCount);
|
|
|
|
void readVqa(Common::ReadStream *stream);
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
void reset();
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
void setupFrame(int frame);
|
2016-09-10 16:33:04 +00:00
|
|
|
private:
|
|
|
|
void removeAnimated();
|
2016-09-10 16:16:17 +00:00
|
|
|
};
|
2015-09-12 23:48:13 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
} // End of namespace BladeRunner
|
2015-09-12 23:48:13 +00:00
|
|
|
|
|
|
|
#endif
|