ScummVM API documentation
compare.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 SCI_GRAPHICS_COMPARE_H
23#define SCI_GRAPHICS_COMPARE_H
24
25#include "common/hashmap.h"
26
27namespace Sci {
28
29class Screen;
30
35public:
36 GfxCompare(SegManager *segMan, GfxCache *cache, GfxScreen *screen, GfxCoordAdjuster16 *coordAdjuster);
38
39 uint16 kernelOnControl(byte screenMask, const Common::Rect &rect);
40 void kernelSetNowSeen(reg_t objectReference);
41 reg_t kernelCanBeHere(reg_t curObject, reg_t listReference);
42 reg_t kernelCantBeHere32(const reg_t curObject, const reg_t listReference) const;
43 bool kernelIsItSkip(GuiResourceId viewId, int16 loopNo, int16 celNo, Common::Point position);
44 void kernelBaseSetter(reg_t object);
45 Common::Rect getNSRect(reg_t object);
46 void setNSRect(reg_t object, Common::Rect nsRect);
47
48private:
49 SegManager *_segMan;
50 GfxCache *_cache;
51 GfxScreen *_screen;
52 GfxCoordAdjuster16 *_coordAdjuster;
53
54 uint16 isOnControl(uint16 screenMask, const Common::Rect &rect);
55
61 reg_t canBeHereCheckRectList(const reg_t checkObject, const Common::Rect &checkRect, const List *list, const uint16 signalFlags) const;
62};
63
64} // End of namespace Sci
65
66#endif // SCI_GRAPHICS_COMPARE_H
Definition: cache.h:38
Definition: compare.h:34
Definition: coordadjuster.h:37
Definition: screen.h:70
Definition: seg_manager.h:48
Definition: console.h:28
Definition: rect.h:144
Definition: rect.h:536
Definition: segment.h:202
Definition: vm_types.h:39
Definition: atari-screen.h:58