ScummVM API documentation
inventory_item.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef AGS_ENGINE_AC_INVENTORY_ITEM_H
23#define AGS_ENGINE_AC_INVENTORY_ITEM_H
24
25#include "ags/engine/ac/dynobj/script_inv_item.h"
26
27namespace AGS3 {
28
29void InventoryItem_SetCursorGraphic(ScriptInvItem *iitem, int newSprite);
30int InventoryItem_GetCursorGraphic(ScriptInvItem *iitem);
31void InventoryItem_SetGraphic(ScriptInvItem *iitem, int piccy);
32void InventoryItem_SetName(ScriptInvItem *scii, const char *newname);
33int InventoryItem_GetID(ScriptInvItem *scii);
34ScriptInvItem *GetInvAtLocation(int xx, int yy);
35void InventoryItem_GetName(ScriptInvItem *iitem, char *buff);
36const char *InventoryItem_GetName_New(ScriptInvItem *invitem);
37int InventoryItem_GetGraphic(ScriptInvItem *iitem);
38void InventoryItem_RunInteraction(ScriptInvItem *iitem, int mood);
39int InventoryItem_CheckInteractionAvailable(ScriptInvItem *iitem, int mood);
40int InventoryItem_GetProperty(ScriptInvItem *scii, const char *property);
41void InventoryItem_GetPropertyText(ScriptInvItem *scii, const char *property, char *bufer);
42const char *InventoryItem_GetTextProperty(ScriptInvItem *scii, const char *property);
43bool InventoryItem_SetProperty(ScriptInvItem *scii, const char *property, int value);
44bool InventoryItem_SetTextProperty(ScriptInvItem *scii, const char *property, const char *value);
45
46void set_inv_item_cursorpic(int invItemId, int piccy);
47
48} // namespace AGS3
49
50#endif