Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2007, 11:45:56 AM (17 years ago)
Author:
snellen
Message:

Got nothing to do during the MTU lecture… so I finished the ActionTrigger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/inputdevice/src/world_entities/player.cc

    r10632 r10634  
    1717#include "playable.h"
    1818#include "space_ships/space_ship.h"
    19 #include "script_triggers/action_trigger.h"
    2019
    2120#include "event_handler.h"
     
    4140
    4241  this->subscribeEvent(ES_GAME, KeyMapper::PEV_CHANGE_SHIP);
    43   this->subscribeEvent(ES_GAME, KeyMapper::PEV_ACTION);
    4442}
    4543
     
    134132    this->enterNewPlayable();
    135133  }
    136   else if(event.type == KeyMapper::PEV_ACTION && event.bPressed)
    137   {
    138    for (ObjectList<ActionTrigger>::const_iterator it = ActionTrigger::objectList().begin();
    139        it != ActionTrigger::objectList().end();
    140        ++it)
    141       (*it)->executeAction();
    142   }
    143134
    144135  if (likely(this->playable != NULL))
Note: See TracChangeset for help on using the changeset viewer.