ScummVM API documentation
game_location.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_GAME_LOCATION_H
23 #define TITANIC_GAME_LOCATION_H
24 
25 #include "titanic/support/simple_file.h"
26 #include "titanic/core/node_item.h"
27 #include "titanic/core/room_item.h"
28 #include "titanic/core/view_item.h"
29 
30 namespace Titanic {
31 
32 enum PassengerClass {
33  UNCHECKED = 4, THIRD_CLASS = 3, SECOND_CLASS = 2, FIRST_CLASS = 1,
34  NO_CLASS = 0
35 };
36 
37 class CGameState;
38 
40 private:
41  CGameState *_gameState;
42  CViewItem *_view;
43 
44  int _roomNumber;
45  int _nodeNumber;
46  int _viewNumber;
47 public:
48  CGameLocation(CGameState *owner);
49 
53  void save(SimpleFile *file) const;
54 
58  void load(SimpleFile *file);
59 
63  void setView(CViewItem *view);
64 
68  CViewItem *getView();
69 
73  CNodeItem *getNode();
74 
78  CRoomItem *getRoom();
79 };
80 
81 } // End of namespace Titanic
82 
83 #endif /* TITANIC_GAME_LOCATION_H */
CViewItem * getView()
Definition: simple_file.h:49
Definition: room_item.h:33
Definition: node_item.h:29
Definition: game_state.h:60
void save(SimpleFile *file) const
void setView(CViewItem *view)
Definition: arm.h:30
CNodeItem * getNode()
void load(SimpleFile *file)
Definition: game_location.h:39
CRoomItem * getRoom()
Definition: view_item.h:32