Last change
on this file since 6855 was
6800,
checked in by dafrick, 15 years ago
|
Created a new class of triggers called Multitriggers.
MultiTriggers are triggers which (as opposed to normal triggers) have a state for each object triggering the MultiTrigger, that means, that a MultiTrigger can be triggered for two different Players, while not being triggered for a third.
To go with this MultiTrigger I created a data structure (MultitriggerContainer), which helps relaying important information to the objects, that receive the Events of the trigger.
Also there is a MultiDistanceTrigger, which is just the DistanceTrigger as a MultiTrigger.
To make this work I had to make some adjustements to the eventsystem, namely an EventState can now be either an EventState (as it was before) or an EventSink, which means that every efent arriving at the EventState is processed as opposed to just the ones which change the state.
There is a new makro (XMLPortEventSink) to create an EventState with sink behaviour. It can be used exacly as the XMLPortEventState makro.
|
-
Property svn:eol-style set to
native
|
File size:
176 bytes
|
Line | |
---|
1 | ADD_SOURCE_FILES(OBJECTS_SRC_FILES |
---|
2 | CheckPoint.cc |
---|
3 | DistanceMultiTrigger.cc |
---|
4 | DistanceTrigger.cc |
---|
5 | EventTrigger.cc |
---|
6 | MultiTrigger.cc |
---|
7 | MultiTriggerContainer.cc |
---|
8 | Trigger.cc |
---|
9 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.