Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/camera/src/world_entities/cameraman.cc @ 10195

Last change on this file since 10195 was 10195, checked in by gfilip, 14 years ago

well …

File size: 421 bytes
Line 
1#include "shell_command.h"
2#include "cameraman.h"
3#include "camera.h"
4#include "state.h"
5
6
7
8
9cameraman::cameraman()
10{
11  currentCam=State::getCameraNode();
12  cameras[0]=currentCam;
13  camAmount=1;
14
15}
16
17
18void cameraman::createCam()
19{
20if (camAmount<6)
21{
22  PNode* newCamera=new Camera();
23  cameras[camAmount]=newCamera;
24}
25}
26
27void cameraman::setCam(int cameraNo)
28{
29  if (cameraNo<camAmount)
30  currentCam=cameras[cameraNo];
31
32}
33
34
Note: See TracBrowser for help on using the repository browser.