Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/objects/triggers/CMakeLists.txt @ 6880

Last change on this file since 6880 was 6864, checked in by dafrick, 15 years ago

Created a new MutliTrigger: EventMultiTrigger, which essentially does the same as EventTrigger but for every object that is a target as specified by teh EventMultiTrigger an Event is fired with information as being triggered by the target object.
This allows, e.g. to use the EventMultiTrigger to trigger QuestEffectBeacons.
I've also added a fireEvent() to Pawn such that an Event is fired when the Pawn is destroyed (forcebly). With EventMultiTrigger (but also with EventTrigger) one can now find out whether a Pawn died.
Here a little piece of example XML code to illustrate the usage:
<EventMutliTrigger name="trigger1">

<events>

<trigger>

<Spaceship />

</trigger>

</events>

</EventMultiTrigger>
To be able to implement this another feature was added to MultiTrigger, which is called broadcast. If enabled the MultiTrigger sends all Events triggered by NULL as to have come by all possible triggerers.

Additionally I've fixed a bug:
In DistanceMultiTrigger, an infinite loop occured under some circumstances. Not any more.

And did some niceifying (aka. documenting, renaming and code restructuring).

  • Property svn:eol-style set to native
File size: 199 bytes
Line 
1ADD_SOURCE_FILES(OBJECTS_SRC_FILES
2  CheckPoint.cc
3  DistanceMultiTrigger.cc
4  DistanceTrigger.cc
5  EventMultiTrigger.cc
6  EventTrigger.cc
7  MultiTrigger.cc
8  MultiTriggerContainer.cc
9  Trigger.cc
10)
Note: See TracBrowser for help on using the repository browser.