Panda3D

asyncTaskPause.cxx

00001 // Filename: asyncTaskPause.cxx
00002 // Created by:  drose (04Oct08)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "asyncTaskPause.h"
00016 
00017 TypeHandle AsyncTaskPause::_type_handle;
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: AsyncTaskPause::Constructor
00021 //       Access: Published
00022 //  Description:
00023 ////////////////////////////////////////////////////////////////////
00024 AsyncTaskPause::
00025 AsyncTaskPause(double delay) :
00026   AsyncTask("pause")
00027 {
00028   set_delay(delay);
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: AsyncTaskPause::do_task
00033 //       Access: Protected, Virtual
00034 //  Description: Override this function to do something useful for the
00035 //               task.
00036 //
00037 //               This function is called with the lock *not* held.
00038 ////////////////////////////////////////////////////////////////////
00039 AsyncTask::DoneStatus AsyncTaskPause::
00040 do_task() {
00041   return DS_pause;
00042 }
 All Classes Functions Variables Enumerations