Panda3D
asyncTaskSequence.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file asyncTaskSequence.I
10  * @author drose
11  * @date 2008-10-04
12  */
13 
14 /**
15  * Sets the repeat count of the sequence. If the count is 0 or 1, the
16  * sequence will run exactly once. If it is greater than 0, it will run that
17  * number of times. If it is negative, it will run forever until it is
18  * explicitly removed.
19  */
20 INLINE void AsyncTaskSequence::
21 set_repeat_count(int repeat_count) {
22  _repeat_count = repeat_count;
23 }
24 
25 /**
26  * Returns the repeat count of the sequence. See set_repeat_count().
27  */
28 INLINE int AsyncTaskSequence::
30  return _repeat_count;
31 }
32 
33 /**
34  * Returns the index of the task within the sequence that is currently being
35  * executed (or that will be executed at the next epoch).
36  */
37 INLINE size_t AsyncTaskSequence::
39  return _task_index;
40 }
size_t get_current_task_index() const
Returns the index of the task within the sequence that is currently being executed (or that will be e...
int get_repeat_count() const
Returns the repeat count of the sequence.
void set_repeat_count(int repeat_count)
Sets the repeat count of the sequence.