Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10404 in orxonox.OLD for trunk/src/world_entities/cameraman.cc


Ignore:
Timestamp:
Jan 27, 2007, 2:20:24 PM (19 years ago)
Author:
patrick
Message:

correct fading

File:
1 edited

Legend:

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

    r10403 r10404  
    2222#include "script_class.h"
    2323#include "loading/load_param_xml.h"
     24#include "blackscreen.h"
     25#include "p_node.h"
     26#include "camera.h"
    2427
    2528ObjectListDefinition(CameraMan);
     29
     30SHELL_COMMAND(camerainfo, CameraMan, cameraInfo);
    2631
    2732
     
    207212
    208213
     214void CameraMan::cameraInfo()
     215{
     216  bool sameCam = (this->currentCam == State::getCamera());
     217
     218
     219  PRINT(0)("==== CameraMan::cameraInfo ===\n");
     220  PRINT(0)("=  Camera Name: %s\n", this->currentCam->getName().c_str());
     221  PRINT(0)("=  Tests:\n");
     222  PRINT(0)("==  State::Cam == this::Cam  %i\n", sameCam);
     223  PRINT(0)("==  Parenting Informations:\n");
     224  this->currentCam->debugNode(10);
     225  PRINT(0)("==============================\n");
     226}
     227
     228
     229float CameraMan::getCurrCameraCoorX()
     230{ return this->currentCam->getAbsCoorX(); }
     231
     232float CameraMan::getCurrCameraCoorY()
     233{ return this->currentCam->getAbsCoorY(); }
     234
     235float CameraMan::getCurrCameraCoorZ()
     236{ return this->currentCam->getAbsCoorZ(); }
     237
     238
     239
    209240//how to get a class fkt pointer
    210241
Note: See TracChangeset for help on using the changeset viewer.