Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10632 in orxonox.OLD for branches/inputdevice/src/world_entities


Ignore:
Timestamp:
Apr 12, 2007, 7:52:28 PM (18 years ago)
Author:
snellen
Message:

finished… testing needed

Location:
branches/inputdevice/src/world_entities
Files:
2 edited

Legend:

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

    r10516 r10632  
    1717#include "playable.h"
    1818#include "space_ships/space_ship.h"
     19#include "script_triggers/action_trigger.h"
    1920
    2021#include "event_handler.h"
     
    4041
    4142  this->subscribeEvent(ES_GAME, KeyMapper::PEV_CHANGE_SHIP);
     43  this->subscribeEvent(ES_GAME, KeyMapper::PEV_ACTION);
    4244}
    4345
     
    132134    this->enterNewPlayable();
    133135  }
     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  }
    134143
    135144  if (likely(this->playable != NULL))
  • branches/inputdevice/src/world_entities/script_triggers/action_trigger.cc

    r10631 r10632  
    137137    }
    138138  }
     139
     140  actionScheduled = false;
    139141}
    140142
Note: See TracChangeset for help on using the changeset viewer.