add unfinished bmpImage implementation
[openc2e.git] / CameraPart.h
blob84f171983bcb09d24a6334b38a42238a46081a81
1 /*
2 * CameraPart.h
3 * openc2e
5 * Created by Alyssa Milburn on Mon Feb 13 2006.
6 * Copyright (c) 2006 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 _CAMERAPART_H
21 #define _CAMERAPART_H
23 #include "CompoundPart.h"
25 class Camera;
27 class CameraPart : public SpritePart {
28 protected:
29 unsigned int viewheight, viewwidth, cameraheight, camerawidth;
30 shared_ptr<Camera> camera;
32 public:
33 CameraPart(Agent *p, unsigned int _id, std::string spritefile, unsigned int fimg, int _x, int _y,
34 unsigned int _z, unsigned int viewwidth, unsigned int viewheight,
35 unsigned int camerawidth, unsigned int cameraheight);
37 unsigned int const cameraWidth() { return viewwidth; }
38 unsigned int const cameraHeight() { return viewheight; }
39 shared_ptr<Camera> &getCamera() { return camera; }
40 void partRender(class Surface *renderer, int xoffset, int yoffset);
41 void tick();
44 #endif
46 /* vim: set noet: */