Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7868 in orxonox.OLD for trunk/src/world_entities/camera.cc


Ignore:
Timestamp:
May 26, 2006, 1:21:32 PM (18 years ago)
Author:
bensch
Message:

trunk: merge Check in the Event-changes:
r7867 | bensch | 2006-05-26 13:19:46 +0200 (Fri, 26 May 2006) | 1 line

Events better subscribed


r7866 | bensch | 2006-05-26 13:11:10 +0200 (Fri, 26 May 2006) | 1 line

Events are subscribed at the EventListener, and not the EventHandler

File:
1 edited

Legend:

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

    r7347 r7868  
    1616
    1717#include "camera.h"
    18 
    19 #include "event_handler.h"
    20 
    21 using namespace std;
    22 
     18#include "key_mapper.h"
    2319
    2420/**
     
    3127  this->target = new CameraTarget();
    3228
    33   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW0);
    34   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW1);
    35   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW2);
    36   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW3);
    37   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW4);
    38   EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_VIEW5);
     29  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW0);
     30  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW1);
     31  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW2);
     32  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW3);
     33  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW4);
     34  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW5);
    3935
    4036  this->setFovy(90);
Note: See TracChangeset for help on using the changeset viewer.