Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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/space_ships/turbine_hover.cc

    r7348 r7868  
    2626#include "util/loading/factory.h"
    2727#include "key_mapper.h"
    28 #include "event_handler.h"
    2928#include "state.h"
    3029
     
    3231#include "dot_emitter.h"
    3332#include "sprite_particles.h"
    34 
    35 using namespace std;
    3633
    3734CREATE_FACTORY(TurbineHover, CL_TURBINE_HOVER);
     
    176173
    177174
    178   //add events to the eventlist
    179   registerEvent(KeyMapper::PEV_FORWARD);
    180   registerEvent(KeyMapper::PEV_BACKWARD);
    181   registerEvent(KeyMapper::PEV_LEFT);
    182   registerEvent(KeyMapper::PEV_RIGHT);
    183   registerEvent(KeyMapper::PEV_UP);
    184   registerEvent(KeyMapper::PEV_DOWN);
    185   registerEvent(KeyMapper::PEV_FIRE1);
    186   registerEvent(KeyMapper::PEV_NEXT_WEAPON);
    187   registerEvent(KeyMapper::PEV_PREVIOUS_WEAPON);
    188   registerEvent(EV_MOUSE_MOTION);
     175  //add events to the eventlist of the Playable
     176  this->registerEvent(KeyMapper::PEV_FORWARD);
     177  this->registerEvent(KeyMapper::PEV_BACKWARD);
     178  this->registerEvent(KeyMapper::PEV_LEFT);
     179  this->registerEvent(KeyMapper::PEV_RIGHT);
     180  this->registerEvent(KeyMapper::PEV_UP);
     181  this->registerEvent(KeyMapper::PEV_DOWN);
     182  this->registerEvent(KeyMapper::PEV_FIRE1);
     183  this->registerEvent(KeyMapper::PEV_NEXT_WEAPON);
     184  this->registerEvent(KeyMapper::PEV_PREVIOUS_WEAPON);
     185  this->registerEvent(EV_MOUSE_MOTION);
    189186
    190187  dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false);
Note: See TracChangeset for help on using the changeset viewer.