23 Event(
const std::string &event_name,
EventReceiver *receiver) :
33 Event(
const Event ©) :
34 _parameters(copy._parameters),
35 _receiver(copy._receiver),
44 operator = (
const Event ©) {
45 _parameters = copy._parameters;
46 _receiver = copy._receiver;
62 _parameters.push_back(obj);
70 get_num_parameters()
const {
71 return _parameters.size();
78 get_parameter(
int n)
const {
79 nassertr(n >= 0 && n < (
int)_parameters.size(),
EventParameter(0));
80 return _parameters[n];
88 has_receiver()
const {
89 return _receiver !=
nullptr;
96 get_receiver()
const {
105 _receiver = receiver;
120 output(std::ostream &out)
const {
124 for (ParameterList::const_iterator pi = _parameters.begin(); pi != _parameters.end(); ++pi) {
125 if (pi != _parameters.begin()) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An optional parameter associated with an event.
An abstract base class for anything that might care about receiving events.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A named event, possibly with parameters.
TypeHandle is the identifier used to differentiate C++ class types.