ScummVM API documentation
gameinterface.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 STARK_SERVICES_GAME_INTERFACE_H
23 #define STARK_SERVICES_GAME_INTERFACE_H
24 
25 #include "engines/stark/resources/pattable.h"
26 
27 #include "common/scummsys.h"
28 #include "common/rect.h"
29 
30 namespace Stark {
31 
32 class VisualImageXMG;
33 
34 namespace Resources {
35 class ItemVisual;
36 }
37 
42 public:
43  GameInterface();
44  ~GameInterface();
45 
51  bool skipCurrentSpeeches();
52 
54  void walkTo(const Common::Point &mouse);
55 
56  VisualImageXMG *getActionImage(uint32 itemIndex, bool active);
57  VisualImageXMG *getCursorImage(uint32 itemIndex);
58 
60  bool itemHasAction(Resources::ItemVisual *item, int32 action);
61  bool itemHasActionAt(Resources::ItemVisual *item, const Common::Point &position, int32 action);
62 
64  int32 itemGetDefaultActionAt(Resources::ItemVisual *item, const Common::Point &position);
65 
67  void itemDoAction(Resources::ItemVisual *item, uint32 action);
68  void itemDoActionAt(Resources::ItemVisual *item, uint32 action, const Common::Point &position);
69 
71  Common::String getItemTitle(Resources::ItemVisual *object);
72  Common::String getItemTitleAt(Resources::ItemVisual *object, const Common::Point &pos);
73 
75  Resources::ActionArray listActionsPossibleForObject(Resources::ItemVisual *item);
76  Resources::ActionArray listActionsPossibleForObjectAt(Resources::ItemVisual *item, const Common::Point &pos);
77 
79  Resources::ActionArray listStockActionsPossibleForObject(Resources::ItemVisual *item);
80  Resources::ActionArray listStockActionsPossibleForObjectAt(Resources::ItemVisual *item, const Common::Point &pos);
81 
83  bool isAprilWalking() const;
84 
86  void setAprilRunning();
87 
89  Common::Array<Common::Point> listExitPositions();
90 };
91 
92 } // End of namespace Stark
93 
94 #endif // STARK_SERVICES_GAME_INTERFACE_H
Definition: str.h:59
Definition: gameinterface.h:41
Definition: item.h:139
Definition: console.h:27
Definition: rect.h:45
Definition: image.h:45