ScummVM API documentation
carry.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 TITANIC_CARRY_H
23 #define TITANIC_CARRY_H
24 
25 #include "titanic/core/game_object.h"
26 #include "titanic/messages/messages.h"
27 #include "titanic/messages/mouse_messages.h"
28 
29 namespace Titanic {
30 
31 class CCarry : public CGameObject {
32  DECLARE_MESSAGE_MAP;
33  bool MouseDragStartMsg(CMouseDragStartMsg *msg);
34  bool MouseDragMoveMsg(CMouseDragMoveMsg *msg);
35  bool MouseDragEndMsg(CMouseDragEndMsg *msg);
36  bool UseWithCharMsg(CUseWithCharMsg *msg);
37  bool LeaveViewMsg(CLeaveViewMsg *msg);
38  bool UseWithOtherMsg(CUseWithOtherMsg *msg);
39  bool VisibleMsg(CVisibleMsg *msg);
40  bool MouseButtonDownMsg(CMouseButtonDownMsg *msg);
41  bool RemoveFromGameMsg(CRemoveFromGameMsg *msg);
42  bool MoveToStartPosMsg(CMoveToStartPosMsg *msg);
43  bool EnterViewMsg(CEnterViewMsg *msg);
44  bool PassOnDragStartMsg(CPassOnDragStartMsg *msg);
45 private:
46  int _unused5;
47  CString _doesNothingMsg;
48  CString _doesntWantMsg;
49  int _unusedR, _unusedG, _unusedB;
50  int _itemFrame;
51  CString _unused6;
52  int _enterFrame;
53  bool _enterFrameSet;
54 protected:
55  Point _centroid;
56  int _visibleFrame;
57 public:
58  CString _npcUse;
59  bool _canTake;
60  Point _origPos;
61  CString _fullViewName;
62 public:
63  CLASSDEF;
64  CCarry();
65 
69  void save(SimpleFile *file, int indent) override;
70 
74  void load(SimpleFile *file) override;
75 };
76 
77 } // End of namespace Titanic
78 
79 #endif /* TITANIC_CARRY_H */
Definition: mouse_messages.h:150
void save(SimpleFile *file, int indent) override
Definition: carry.h:31
Definition: mouse_messages.h:139
Definition: messages.h:289
Definition: simple_file.h:49
Definition: messages.h:407
void load(SimpleFile *file) override
Definition: game_object.h:79
Definition: mouse_messages.h:181
Definition: messages.h:318
Definition: rect.h:45
Definition: arm.h:30
Definition: string.h:40
Definition: messages.h:409
Definition: messages.h:310
Definition: mouse_messages.h:71
Definition: messages.h:353
Definition: mouse_messages.h:165
Definition: messages.h:406