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.
23 #include "CompoundPart.h"
27 class CameraPart
: public SpritePart
{
29 unsigned int viewheight
, viewwidth
, cameraheight
, camerawidth
;
30 shared_ptr
<Camera
> camera
;
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
);