ScummVM API documentation
map_marker.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) 1999-2000 Revolution Software Ltd.
9  * This code is based on source code created by Revolution Software,
10  * used with permission.
11  *
12  * This program is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #ifndef ICB_MAP_MARKERR
28 #define ICB_MAP_MARKERR
29 
30 #include "engines/icb/common/px_array.h"
31 #include "engines/icb/common/px_features.h"
32 #include "engines/icb/p4_generic.h"
33 
34 namespace ICB {
35 
36 #define MARKER_NAME_LEN 32
37 
38 // this must be same as MAX_voxel_list
39 #define MAX_markers 33
40 
41 // The real map_marker struct for in use in game engine
42 typedef struct {
43  char name[MARKER_NAME_LEN]; // cut down name equivalent
44  PXreal x, y, z; // Reference point for the prop.
45  _feature_type type; // The type of the prop.
46  PXfloat pan; // 0 - 99 (maybe use -1 to indicate no direction)
47 } _map_marker;
48 
49 // The map_marker struct used for saving to disc
50 typedef struct {
51  char name[MARKER_NAME_LEN]; // cut down name equivalent
52  float x, y, z; // Reference point for the prop.
53  _feature_type type; // The type of the prop.
54  float pan; // 0 - 99 (maybe use -1 to indicate no direction)
56 
57 class _marker {
58 public:
59  void ___init();
60  _map_marker *Fetch_marker_by_object_name(const char *name);
61  _map_marker *Create_new_marker(const char *name);
62  uint32 num_markers;
63  _map_marker marks[MAX_markers];
64 };
65 
66 } // End of namespace ICB
67 
68 #endif
Definition: map_marker.h:42
Definition: actor.h:32
Definition: map_marker.h:57
Definition: map_marker.h:50