added ls()

This commit is contained in:
Dave Schuyler 2003-10-28 01:13:24 +00:00
parent c4dc626ead
commit e17eb83f3c
3 changed files with 13 additions and 1 deletions

View File

@ -19,7 +19,7 @@
#ifndef COLLISIONHANDLERQUEUE_H #ifndef COLLISIONHANDLERQUEUE_H
#define COLLISIONHANDLERQUEUE_H #define COLLISIONHANDLERQUEUE_H
#include <pandabase.h> #include "pandabase.h"
#include "collisionHandler.h" #include "collisionHandler.h"
#include "collisionEntry.h" #include "collisionEntry.h"

View File

@ -83,4 +83,15 @@ clear_recorder() {
set_recorder((CollisionRecorder *)NULL); set_recorder((CollisionRecorder *)NULL);
} }
////////////////////////////////////////////////////////////////////
// Function: CollisionTraverser::ls
// Access: Published
// Description: Shortcut for write(). This is handy for interactive
// debugging.
////////////////////////////////////////////////////////////////////
INLINE void CollisionTraverser::
ls() const {
write(nout, 0);
}
#endif // DO_COLLISION_RECORDING #endif // DO_COLLISION_RECORDING

View File

@ -80,6 +80,7 @@ PUBLISHED:
#endif // DO_COLLISION_RECORDING #endif // DO_COLLISION_RECORDING
void output(ostream &out) const; void output(ostream &out) const;
INLINE void ls() const;
void write(ostream &out, int indent_level) const; void write(ostream &out, int indent_level) const;
private: private: