ClockObject needs a copy constructor

This commit is contained in:
David Rose 2011-12-08 15:28:29 +00:00
parent 7d9778f2b9
commit 57165297a7
2 changed files with 23 additions and 0 deletions

View File

@ -74,6 +74,28 @@ ClockObject() {
_error_count = _true_clock->get_error_count();
}
////////////////////////////////////////////////////////////////////
// Function: ClockObject::Copy Constructor
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
ClockObject::
ClockObject(const ClockObject &copy) :
_true_clock(copy._true_clock),
_mode(copy._mode),
_start_short_time(copy._start_short_time),
_start_long_time(copy._start_long_time),
_actual_frame_time(copy._actual_frame_time),
_max_dt(copy._max_dt),
_user_frame_rate(copy._user_frame_rate),
_degrade_factor(copy._degrade_factor),
_error_count(copy._error_count),
_average_frame_rate_interval(copy._average_frame_rate_interval),
_ticks(copy._ticks),
_cycler(copy._cycler)
{
}
////////////////////////////////////////////////////////////////////
// Function: ClockObject::set_mode
// Access: Published

View File

@ -77,6 +77,7 @@ PUBLISHED:
};
ClockObject();
ClockObject(const ClockObject &copy);
INLINE ~ClockObject();
void set_mode(Mode mode);