00001 // Filename: collisionHandler.cxx 00002 // Created by: drose (16Mar02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "collisionHandler.h" 00020 00021 TypeHandle CollisionHandler::_type_handle; 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Function: CollisionHandler::begin_group 00025 // Access: Public, Virtual 00026 // Description: Will be called by the CollisionTraverser before a new 00027 // traversal is begun. It instructs the handler to 00028 // reset itself in preparation for a number of 00029 // CollisionEntries to be sent. 00030 //////////////////////////////////////////////////////////////////// 00031 void CollisionHandler:: 00032 begin_group() { 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function: CollisionHandler::add_entry 00037 // Access: Public, Virtual 00038 // Description: Called between a begin_group() .. end_group() 00039 // sequence for each collision that is detected. 00040 //////////////////////////////////////////////////////////////////// 00041 void CollisionHandler:: 00042 add_entry(CollisionEntry *) { 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: CollisionHandler::end_group 00047 // Access: Public, Virtual 00048 // Description: Called by the CollisionTraverser at the completion of 00049 // all collision detections for this traversal. It 00050 // should do whatever finalization is required for the 00051 // handler. 00052 // 00053 // The return value is normally true, but if this 00054 // returns value, the CollisionTraverser will remove the 00055 // handler from its list, allowing the CollisionHandler 00056 // itself to determine when it is no longer needed. 00057 //////////////////////////////////////////////////////////////////// 00058 bool CollisionHandler:: 00059 end_group() { 00060 return true; 00061 }