add wraparound support to C2 physics
[openc2e.git] / fileSwapper.h
blobf5711974432655f54ba85c8d25ff4d6daacab350
1 /*
2 * fileSwapper.h
3 * openc2e
5 * Created by Alyssa Milburn on Fri Jul 23 2004.
6 * Copyright (c) 2004 Alyssa Milburn. 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 #include <string>
23 Creatures file formats are little-endian. In order to mmap() them on big-endian,
24 we need to convert them. This class is a grouping for the conversion code.
26 class fileSwapper {
27 private:
28 void convertsprite(class s16Image &src, std::string dest);
29 public:
30 void convertc16(std::string src, std::string dest);
31 void converts16(std::string src, std::string dest);
32 void convertblk(std::string src, std::string dest);
34 /* vim: set noet: */