Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10193 in orxonox.OLD for branches/camera/src/world_entities


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

cameraman revided

Location:
branches/camera/src/world_entities
Files:
2 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
  • branches/camera/src/world_entities/cameraman.h

    r10192 r10193  
    1010    int camNo;
    1111    int camAmount;
    12     Pnode* cameras[10];
     12    Pnode* cameras[6];
    1313
    1414
    1515  public:
    1616    cameraman();
    17     void setCam(Pnode* cam);
     17    void setCam(int CameraNo);
    1818    void createCam();
    1919
Note: See TracChangeset for help on using the changeset viewer.