adding flush()

This commit is contained in:
Josh Wilson 2007-09-14 21:40:14 +00:00
parent 59d9af082a
commit 5b105d3968
2 changed files with 12 additions and 0 deletions

View File

@ -162,6 +162,17 @@ clear() {
_current_colliding.clear();
}
////////////////////////////////////////////////////////////////////
// Function: CollisionHandlerEvent::flush
// Access: Public
// Description: Same as clear() except "out" events are thrown.
////////////////////////////////////////////////////////////////////
void CollisionHandlerEvent::
flush() {
begin_group();
end_group();
}
////////////////////////////////////////////////////////////////////
// Function: CollisionHandlerEvent::throw_event_for
// Access: Private

View File

@ -66,6 +66,7 @@ PUBLISHED:
INLINE string get_out_pattern(int n) const;
void clear();
void flush();
protected:
void throw_event_for(const vector_string &patterns, CollisionEntry *entry);