ScummVM API documentation
bbdou_triggerfunctions.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 ILLUSIONS_BBDOU_BBDOU_TRIGGERFUNCTIONS_H
23#define ILLUSIONS_BBDOU_BBDOU_TRIGGERFUNCTIONS_H
24
25#include "common/algorithm.h"
26#include "common/stack.h"
27
28namespace Illusions {
29
30struct TriggerFunction;
31
32typedef Common::Functor2<TriggerFunction*, uint32, void> TriggerFunctionCallback;
33
35 uint32 _sceneId;
36 uint32 _verbId;
37 uint32 _objectId2;
38 uint32 _objectId;
39 TriggerFunctionCallback *_callback;
40 TriggerFunction(uint32 sceneId, uint32 verbId, uint32 objectId2, uint32 objectId, TriggerFunctionCallback *callback);
42 void run(uint32 callingThreadId);
43};
44
46public:
47 void add(uint32 sceneId, uint32 verbId, uint32 objectId2, uint32 objectId, TriggerFunctionCallback *callback);
48 TriggerFunction *find(uint32 sceneId, uint32 verbId, uint32 objectId2, uint32 objectId);
49 void removeBySceneId(uint32 sceneId);
50public:
53 Items _triggerFunctions;
54 ItemsIterator findInternal(uint32 sceneId, uint32 verbId, uint32 objectId2, uint32 objectId);
55};
56
57} // End of namespace Illusions
58
59#endif // ILLUSIONS_BBDOU_BBDOU_TRIGGERFUNCTIONS_H
Definition: bbdou_triggerfunctions.h:45
Definition: func.h:473
Definition: list_intern.h:54
Definition: bbdou_triggerfunctions.h:34