62 lines
2.4 KiB
C++
62 lines
2.4 KiB
C++
// Filename: collisionHandler.cxx
|
|
// Created by: drose (16Mar02)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d-general@lists.sourceforge.net .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "collisionHandler.h"
|
|
|
|
TypeHandle CollisionHandler::_type_handle;
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: CollisionHandler::begin_group
|
|
// Access: Public, Virtual
|
|
// Description: Will be called by the CollisionTraverser before a new
|
|
// traversal is begun. It instructs the handler to
|
|
// reset itself in preparation for a number of
|
|
// CollisionEntries to be sent.
|
|
////////////////////////////////////////////////////////////////////
|
|
void CollisionHandler::
|
|
begin_group() {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: CollisionHandler::add_entry
|
|
// Access: Public, Virtual
|
|
// Description: Called between a begin_group() .. end_group()
|
|
// sequence for each collision that is detected.
|
|
////////////////////////////////////////////////////////////////////
|
|
void CollisionHandler::
|
|
add_entry(CollisionEntry *) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: CollisionHandler::end_group
|
|
// Access: Public, Virtual
|
|
// Description: Called by the CollisionTraverser at the completion of
|
|
// all collision detections for this traversal. It
|
|
// should do whatever finalization is required for the
|
|
// handler.
|
|
//
|
|
// The return value is normally true, but if this
|
|
// returns value, the CollisionTraverser will remove the
|
|
// handler from its list, allowing the CollisionHandler
|
|
// itself to determine when it is no longer needed.
|
|
////////////////////////////////////////////////////////////////////
|
|
bool CollisionHandler::
|
|
end_group() {
|
|
return true;
|
|
}
|