Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 8, 2007, 9:15:27 PM (18 years ago)
Author:
gfilip
Message:

cameraman revided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/cameraman.cc

    r10192 r10193  
    88cameraman::cameraman()
    99{
    10 
     10  currentCam=State::getCameraNode();
     11  cameras[0]=currentCam;
     12  camAmount=1;
    1113
    1214}
     
    1517void cameraman::createCam()
    1618{
    17 
    18 
    19 
     19if (camAmont<6)
     20{
     21  Pnode* newCamera=new Camera();
     22  cameras[camAmount]=newCamera;
    2023}
    2124
    2225
    23 void cameraman::setCam(PNode* cam)
     26void cameraman::setCam(int cameraNo)
    2427{
    25   currentCam=cam;
     28  if (cameraNo<camAmount)
     29  currentCam=cameras[cameraNo];
    2630}
    2731
Note: See TracChangeset for help on using the changeset viewer.