tweak C1-era CARR
[openc2e.git] / blkImage.h
blob09e8005ecea41cd378ec5729893cafadac4e0521
1 /*
2 * blkImage.h
3 * openc2e
5 * Created by Alyssa Milburn on Tue May 25 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 #ifndef _BLKIMAGE_H
21 #define _BLKIMAGE_H
23 #include "creaturesImage.h"
24 #include "mmapifstream.h"
25 #include "endianlove.h"
27 class blkImage : public creaturesImage {
28 private:
29 uint32 *offsets;
31 public:
32 unsigned int totalwidth, totalheight;
34 blkImage() { }
35 blkImage(mmapifstream *, std::string n);
36 ~blkImage();
37 void readHeader(std::istream &in);
38 void writeHeader(std::ostream &s);
39 virtual std::string serializedName() { return name + ".blk"; }
40 bool transparentAt(unsigned int frame, unsigned int x, unsigned int y) { (void)frame; (void)x; (void)y; return false; }
42 friend class fileSwapper;
45 #endif
46 /* vim: set noet: */