2021-12-26 21:19:38 +01:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2011-12-12 14:06:39 -08:00
|
|
|
*
|
2021-12-26 21:19:38 +01:00
|
|
|
* ScummVM is the legal property of its developers, whose names
|
2011-12-12 14:06:39 -08:00
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
2021-12-26 18:47:58 +01:00
|
|
|
* 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.
|
2014-04-05 18:18:42 +02:00
|
|
|
*
|
2012-12-19 23:15:43 +01:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2011-12-12 14:06:39 -08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2012-12-19 23:15:43 +01:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-04-05 18:18:42 +02:00
|
|
|
*
|
2012-12-19 23:15:43 +01:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2011-12-12 14:06:39 -08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GRIM_MATERIAL_COMPONENT_H
|
|
|
|
#define GRIM_MATERIAL_COMPONENT_H
|
|
|
|
|
2011-12-13 09:05:31 -08:00
|
|
|
#include "engines/grim/costume/component.h"
|
2011-12-12 14:06:39 -08:00
|
|
|
|
|
|
|
namespace Grim {
|
|
|
|
|
|
|
|
class Material;
|
|
|
|
|
2011-12-13 09:05:31 -08:00
|
|
|
class MaterialComponent : public Component {
|
2011-12-12 14:06:39 -08:00
|
|
|
public:
|
2011-12-13 09:05:31 -08:00
|
|
|
MaterialComponent(Component *parent, int parentID, const char *filename, tag32 tag);
|
2014-05-29 15:43:27 -07:00
|
|
|
void init() override;
|
|
|
|
void setKey(int val) override;
|
|
|
|
void reset() override;
|
|
|
|
void resetColormap() override;
|
|
|
|
void saveState(SaveGame *state) override;
|
|
|
|
void restoreState(SaveGame *state) override;
|
2011-12-12 14:06:39 -08:00
|
|
|
|
|
|
|
private:
|
|
|
|
Material *_mat;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end of namespace Grim
|
|
|
|
|
|
|
|
#endif
|