2015-09-15 18:26:46 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2016-09-10 16:16:17 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
2015-09-15 18:26:46 +00:00
|
|
|
|
|
|
|
#ifndef BLADERUNNER_ITEMS_H
|
|
|
|
#define BLADERUNNER_ITEMS_H
|
|
|
|
|
|
|
|
#include "bladerunner/bladerunner.h"
|
|
|
|
#include "bladerunner/item.h"
|
|
|
|
|
|
|
|
#include "common/array.h"
|
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
namespace BladeRunner {
|
2015-09-15 18:26:46 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
class Items {
|
|
|
|
BladeRunnerEngine *_vm;
|
2015-09-15 18:26:46 +00:00
|
|
|
|
2016-10-01 22:20:56 +00:00
|
|
|
Common::Array<Item*> _items;
|
2015-09-15 18:26:46 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
public:
|
|
|
|
Items(BladeRunnerEngine *vm);
|
|
|
|
~Items();
|
|
|
|
|
|
|
|
void getXYZ(int itemId, float *x, float *y, float *z);
|
2016-10-12 21:00:33 +00:00
|
|
|
void getWidthHeight(int itemId, int *width, int *height);
|
2016-10-04 00:21:08 +00:00
|
|
|
|
2016-10-01 22:20:56 +00:00
|
|
|
void tick();
|
2017-01-11 15:09:14 +00:00
|
|
|
bool addToWorld(int itemId, int animationId, int setId, Vector3 position, int facing, int height, int width, bool isTargetableFlag, bool isVisibleFlag, bool isPoliceMazeEnemyFlag, bool addToSetFlag);
|
2016-10-12 21:00:33 +00:00
|
|
|
bool addToSet(int itemId);
|
2016-10-02 00:47:12 +00:00
|
|
|
bool remove(int itemId);
|
2016-10-12 21:00:33 +00:00
|
|
|
|
2016-09-10 16:16:17 +00:00
|
|
|
private:
|
|
|
|
int findItem(int itemId);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace BladeRunner
|
2015-09-15 18:26:46 +00:00
|
|
|
|
|
|
|
#endif
|