23 INLINE
bool CollisionHandlerEvent::SortEntries::
27 if (compare_from != 0) {
28 return compare_from < 0;
41 INLINE
void CollisionHandlerEvent::SortEntries::
42 operator = (
const CollisionHandlerEvent::SortEntries &) {
99 _in_patterns.push_back(in_pattern);
123 return _in_patterns.size();
135 nassertr(n >= 0 && n < (
int)_in_patterns.size(), string());
136 return _in_patterns[n];
147 _again_patterns.clear();
170 _again_patterns.push_back(again_pattern);
194 return _again_patterns.size();
206 nassertr(n >= 0 && n < (
int)_again_patterns.size(), string());
207 return _again_patterns[n];
218 _out_patterns.clear();
238 _out_patterns.push_back(out_pattern);
262 return _out_patterns.size();
274 nassertr(n >= 0 && n < (
int)_out_patterns.size(), string());
275 return _out_patterns[n];
int compare_to(const NodePath &other) const
Returns a number less than zero if this NodePath sorts before the other one, greater than zero if it ...
void add_out_pattern(const string &out_pattern)
Adds the pattern string that indicates how the event names are generated when a collision between two...
int get_num_again_patterns() const
Returns the number of in pattern strings that have been added.
string get_out_pattern(int n) const
Returns the nth pattern string that indicates how the event names are generated for each collision de...
void add_again_pattern(const string &again_pattern)
Adds the pattern string that indicates how the event names are generated when a collision between two...
void set_in_pattern(const string &in_pattern)
This method is deprecated; it completely replaces all the in patterns that have previously been set w...
void clear_in_patterns()
Removes all of the previously-added in patterns.
int get_num_out_patterns() const
Returns the number of in pattern strings that have been added.
string get_again_pattern(int n) const
Returns the nth pattern string that indicates how the event names are generated for each collision de...
Defines a single collision event.
void set_again_pattern(const string &again_pattern)
This method is deprecated; it completely replaces all the in patterns that have previously been set w...
int get_num_in_patterns() const
Returns the number of in pattern strings that have been added.
void set_out_pattern(const string &out_pattern)
This method is deprecated; it completely replaces all the in patterns that have previously been set w...
NodePath get_into_node_path() const
Returns the NodePath that represents the specific CollisionNode or GeomNode instance that was collide...
NodePath get_from_node_path() const
Returns the NodePath that represents the CollisionNode that contains the CollisionSolid that triggere...
void clear_out_patterns()
Removes all of the previously-added in patterns.
void clear_again_patterns()
Removes all of the previously-added in patterns.
string get_in_pattern(int n) const
Returns the nth pattern string that indicates how the event names are generated for each collision de...
void add_in_pattern(const string &in_pattern)
Adds a pattern string to the list of events that will be generated in response to a collision...