Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 3:37:48 AM (16 years ago)
Author:
landauf
Message:
  • Added a health bar
  • Some changes in CameraManager to handle the case when no camera exists after removing the last one, but this is still somehow buggy (freezes and later crashes reproducible but inexplicable after a few respawns)
  • Added PawnManager to handle destruction of Pawns without using delete within tick()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Camera.cc

    r2361 r2369  
    5454    {
    5555        RegisterObject(Camera);
    56 
     56COUT(0) << this << ": created camera" << std::endl;
    5757        if (!this->getScene() || !this->getScene()->getSceneManager())
    5858            ThrowException(AbortLoading, "Can't create Camera, no scene or no scene manager given.");
     
    7070        this->configvaluecallback_changedNearClipDistance();
    7171
    72         this->requestFocus(); // ! HACK ! REMOVE THIS !
     72//        this->requestFocus(); // ! HACK ! REMOVE THIS !
    7373    }
    7474
     
    8080            this->getScene()->getSceneManager()->destroyCamera(this->camera_);
    8181        }
     82COUT(0) << this << ": destroyed camera" << std::endl;
    8283    }
    8384
     
    122123    void Camera::removeFocus()
    123124    {
     125COUT(0) << this << ": remove focus" << std::endl;
    124126        this->bHasFocus_ = false;
    125127    }
     
    142144        this->bHasFocus_ = true;
    143145        viewport->setCamera(this->camera_);
     146COUT(0) << this << ": set focus" << std::endl;
    144147
    145148        // reactivate all visible compositors
Note: See TracChangeset for help on using the changeset viewer.