ScummVM API documentation
iwfile.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 STARTREK_IWFILE_H
23 #define STARTREK_IWFILE_H
24 
25 #include "startrek/startrek.h"
26 
31 namespace StarTrek {
32 
33 const int MAX_KEY_POSITIONS = 32;
34 
35 class IWFile {
36 public:
37  IWFile(StarTrekEngine *vm, const Common::String &filename);
38 
39  int getNumEntries() {
40  return _numEntries;
41  }
46  int getClosestKeyPosition(int16 x, int16 y);
47 
49  Common::Point _keyPositions[MAX_KEY_POSITIONS];
50 
53  byte _iwEntries[MAX_KEY_POSITIONS][MAX_KEY_POSITIONS];
54 
55 private:
56  StarTrekEngine *_vm;
57 
58  uint16 _numEntries;
59 };
60 
61 } // End of namespace StarTrek
62 
63 #endif
Definition: str.h:59
Definition: iwfile.h:35
int getClosestKeyPosition(int16 x, int16 y)
List of "key positions" used for pathing.
Definition: rect.h:45
Definition: action.h:27
Common::Point _keyPositions[MAX_KEY_POSITIONS]
Definition: iwfile.h:49
Definition: startrek.h:239