ScummVM API documentation
mapchip.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  * Additional copyright for this file:
8  * Copyright (C) 1995-1997 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef PEGASUS_ITEMS_BIOCHIPS_MAPCHIP_H
26 #define PEGASUS_ITEMS_BIOCHIPS_MAPCHIP_H
27 
28 #include "pegasus/items/biochips/biochipitem.h"
29 #include "pegasus/items/biochips/mapimage.h"
30 
31 namespace Common {
32  class ReadStream;
33  class WriteStream;
34 }
35 
36 namespace Pegasus {
37 
38 class MapChip : public BiochipItem {
39 public:
40  MapChip(const ItemID, const NeighborhoodID, const RoomID, const DirectionConstant);
41  ~MapChip() override;
42 
43  void select() override;
44  void deselect() override;
45  void takeSharedArea() override;
46  void giveUpSharedArea() override;
47 
48  void moveToMapLocation(const NeighborhoodID, const RoomID, const DirectionConstant);
49 
50  void writeToStream(Common::WriteStream *) override;
51  void readFromStream(Common::ReadStream *) override;
52 
53  bool beenToMaze() { return _image.anyFlagSet(); }
54 
55 protected:
56  MapImage _image;
57 };
58 
59 extern MapChip *g_map;
60 
61 } // End of namespace Pegasus
62 
63 #endif
Definition: stream.h:77
Definition: algorithm.h:29
Definition: biochipitem.h:32
Definition: stream.h:385
Definition: mapchip.h:38
Definition: mapimage.h:40
Definition: ai_action.h:33