Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10390 in orxonox.OLD for trunk/src/world_entities/cameraman.h


Ignore:
Timestamp:
Jan 26, 2007, 6:59:26 PM (17 years ago)
Author:
snellen
Message:

made cameraman xml-loadable (hopefully)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/cameraman.h

    r10388 r10390  
    1919  public:
    2020    std::vector<Camera*> cameras;
    21     CameraMan();
     21    CameraMan(const TiXmlElement* root = NULL);
    2222    void setCam(int CameraNo);
    23     void createCam();
     23    void createCam(const TiXmlElement* root);
    2424    void moveCam(int x, int y, int z,  int camNo);
    2525    void moveCurrCam(int x, int y, int z);
     
    3232    void setClipRegion(float nearClip, float farClip);
    3333    void togglFade();
     34   
     35    /// LOADING
     36    virtual void loadParams(const TiXmlElement* root);
     37   
     38    /// Polling (to be used in scripts)
     39    float getCurrCameraCoorX(){ return this->currentCam->getAbsCoorX(); }
     40    float getCurrCameraCoorY(){ return this->currentCam->getAbsCoorY(); }
     41    float getCurrCameraCoorZ(){ return this->currentCam->getAbsCoorZ(); }
    3442
    3543};
Note: See TracChangeset for help on using the changeset viewer.