qtgui: minor include fiddling
[openc2e.git] / ser / s_room.h
blobf6c578f516280a8cb3d2c98ca7bba4b0284f415c
1 /*
2 * s_room.h
3 * openc2e
5 * Created by Bryan Donlan on Sun 21 May 2006
6 * Copyright (c) 2006 Bryan Donlan. All rights reserved.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
20 #ifndef S_ROOM_H
21 #define S_ROOM_H 1
23 #include "Room.h"
24 #include "ser/s_physics.h"
25 #include "ser/s_metaroom.h"
26 #include "serialization.h"
27 #include <boost/serialization/set.hpp>
28 #include <iostream>
29 #include <cassert>
31 SERIALIZE(RoomDoor) {
32 ar & obj.first & obj.second & obj.perm;
35 SERIALIZE(Room) {
36 ar & obj.doors & obj.nearby;
37 ar & obj.x_left & obj.x_right;
38 ar & obj.y_left_ceiling & obj.y_right_ceiling;
39 ar & obj.y_left_floor & obj.y_right_floor;
41 ar & obj.left & obj.right & obj.top & obj.bot;
43 ar & obj.type & obj.id;
44 ar & obj.metaroom;
45 std::string t("CA PREMARK");
46 ar & t;
47 assert(t == "CA PREMARK");
48 #if 0
49 std::vector<float> hack;
50 hack.resize(CA_COUNT);
51 for (int i = 0; i < CA_COUNT; i++) {
52 /* std::cerr << "CA loop, i=" << i << " pre=" << obj.ca[i] << std::endl;
53 ar & obj.ca[i];
54 std::cerr << "Post=" << obj.ca[i] << std::endl;*/
56 #endif
57 ar & obj.ca;
58 std::string t2("CA POSTMARK");
59 ar & t2;
60 assert(t2 == "CA POSTMARK");
63 #endif