Panda3D
collisionHandler.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file collisionHandler.cxx
10  * @author drose
11  * @date 2002-03-16
12  */
13 
14 #include "collisionHandler.h"
15 
16 TypeHandle CollisionHandler::_type_handle;
17 
18 /**
19  *
20  */
21 CollisionHandler::
22 CollisionHandler() {
23  _wants_all_potential_collidees = false;
24 }
25 
26 /**
27  * Will be called by the CollisionTraverser before a new traversal is begun.
28  * It instructs the handler to reset itself in preparation for a number of
29  * CollisionEntries to be sent.
30  */
33 }
34 
35 /**
36  * Called between a begin_group() .. end_group() sequence for each collision
37  * that is detected.
38  */
41 }
42 
43 /**
44  * Called by the CollisionTraverser at the completion of all collision
45  * detections for this traversal. It should do whatever finalization is
46  * required for the handler.
47  *
48  * The return value is normally true, but if this returns value, the
49  * CollisionTraverser will remove the handler from its list, allowing the
50  * CollisionHandler itself to determine when it is no longer needed.
51  */
54  return true;
55 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool end_group()
Called by the CollisionTraverser at the completion of all collision detections for this traversal.
Defines a single collision event.
virtual void begin_group()
Will be called by the CollisionTraverser before a new traversal is begun.
virtual void add_entry(CollisionEntry *entry)
Called between a begin_group() .
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81