18 INLINE
bool CollisionHandlerEvent::SortEntries::
22 if (compare_from != 0) {
23 return compare_from < 0;
33 INLINE
void CollisionHandlerEvent::SortEntries::
34 operator = (
const CollisionHandlerEvent::SortEntries &) {
77 _in_patterns.push_back(in_pattern);
93 INLINE
int CollisionHandlerEvent::
94 get_num_in_patterns()
const {
95 return _in_patterns.size();
104 nassertr(n >= 0 && n < (
int)_in_patterns.size(), std::string());
105 return _in_patterns[n];
113 _again_patterns.clear();
130 _again_patterns.push_back(again_pattern);
146 INLINE
int CollisionHandlerEvent::
147 get_num_again_patterns()
const {
148 return _again_patterns.size();
157 nassertr(n >= 0 && n < (
int)_again_patterns.size(), std::string());
158 return _again_patterns[n];
166 _out_patterns.clear();
181 _out_patterns.push_back(out_pattern);
197 INLINE
int CollisionHandlerEvent::
198 get_num_out_patterns()
const {
199 return _out_patterns.size();
208 nassertr(n >= 0 && n < (
int)_out_patterns.size(), std::string());
209 return _out_patterns[n];
void add_again_pattern(const std::string &again_pattern)
Adds the pattern string that indicates how the event names are generated when a collision between two...
get_from_node_path
Returns the NodePath that represents the CollisionNode that contains the CollisionSolid that triggere...
void add_in_pattern(const std::string &in_pattern)
Adds a pattern string to the list of events that will be generated in response to a collision.
void set_again_pattern(const std::string &again_pattern)
This method is deprecated; it completely replaces all the in patterns that have previously been set w...
get_into_node_path
Returns the NodePath that represents the specific CollisionNode or GeomNode instance that was collide...
void clear_in_patterns()
Removes all of the previously-added in patterns.
get_out_pattern
Returns the nth pattern string that indicates how the event names are generated for each collision de...
get_again_pattern
Returns the nth pattern string that indicates how the event names are generated for each collision de...
Defines a single collision event.
void add_out_pattern(const std::string &out_pattern)
Adds the pattern string that indicates how the event names are generated when a collision between two...
get_in_pattern
Returns the nth pattern string that indicates how the event names are generated for each collision de...
void set_in_pattern(const std::string &in_pattern)
This method is deprecated; it completely replaces all the in patterns that have previously been set w...
void set_out_pattern(const std::string &out_pattern)
This method is deprecated; it completely replaces all the in patterns that have previously been set w...
void clear_out_patterns()
Removes all of the previously-added in patterns.
void clear_again_patterns()
Removes all of the previously-added in patterns.