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, 17 years ago

well …

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