Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10413 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Jan 27, 2007, 9:11:13 PM (18 years ago)
Author:
snellen
Message:

added method detachCurrCamera

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

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

    r10411 r10413  
    3535                        ->addMethod("atachCurrCameraToWorldEntity", Executor2<CameraMan, lua_State*,const std::string&,const std::string&>(&CameraMan::atachCurrCameraToWorldEntity))
    3636                        ->addMethod("changeTarget", Executor3<CameraMan, lua_State*, const std::string&, const std::string&,const std::string&>(&CameraMan::changeTarget))
     37                        ->addMethod("detachCurrCamera", Executor0<CameraMan, lua_State*>(&CameraMan::detachCurrCamera))
    3738                        ->addMethod("setCam", Executor1<CameraMan, lua_State*, const std::string&>(&CameraMan::setCam))
    3839                        ->addMethod("togglFade", Executor0<CameraMan, lua_State*>(&CameraMan::togglFade))
     
    180181}
    181182
     183void CameraMan::detachCurrCamera()
     184{
     185  currentCam->target->detach();
     186}
    182187
    183188void CameraMan::jumpCam(int x, int y, int z, int camNo)
  • trunk/src/world_entities/cameraman.h

    r10406 r10413  
    3434    void atachCurrTarget(PNode* target);
    3535    void atachCurrCameraToWorldEntity(const std::string& className, const std::string& targetEntity);
     36    void detachCurrCamera();
    3637    void jumpCam(int x, int y, int z, int camNo);
    3738    void jumpCurrCam(int x, int y, int z);
Note: See TracChangeset for help on using the changeset viewer.