Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10193 was 10193, checked in by gfilip, 17 years ago

cameraman revided

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