Difference between revisions of "Script Classes for Adventure Games/Timer2 Class"
From SCI Wiki
Jump to navigationJump to search(2 intermediate revisions by the same user not shown) | |||
Line 54: | Line 54: | ||
<blockquote> | <blockquote> | ||
− | ==== cycleCnt | + | ==== cycleCnt ==== |
<blockquote>The interval to be timed measured in animation cycles. This is set by the set: and setCycle: methods, and should not be manipulated directly.</blockquote> | <blockquote>The interval to be timed measured in animation cycles. This is set by the set: and setCycle: methods, and should not be manipulated directly.</blockquote> | ||
− | ==== seconds | + | ==== seconds ==== |
<blockquote>The interval to be timed measured in seconds. This is set by the setReal: method and should not be manipulated directly.</blockquote> | <blockquote>The interval to be timed measured in seconds. This is set by the setReal: method and should not be manipulated directly.</blockquote> | ||
− | ==== lastTime | + | ==== lastTime ==== |
<blockquote>Used internally when timing seconds.</blockquote> | <blockquote>Used internally when timing seconds.</blockquote> | ||
− | ==== client | + | ==== client ==== |
<blockquote>The object to cue: when the timer goes off.</blockquote> | <blockquote>The object to cue: when the timer goes off.</blockquote> | ||
− | + | </blockquote> | |
===<br /> Methods === | ===<br /> Methods === | ||
<blockquote></blockquote> | <blockquote></blockquote> | ||
− | |||
| |
Latest revision as of 01:41, 11 December 2015
Chapter:
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
Index
The Timer Class
The Timer class implements the concept of an alarm clock — you can set it to cue: an object at some future time.
In file: | system.sc |
Inherits from: | Object |
Inherited by: | none |
Properties
cycleCnt
The interval to be timed measured in animation cycles. This is set by the set: and setCycle: methods, and should not be manipulated directly.
seconds
The interval to be timed measured in seconds. This is set by the setReal: method and should not be manipulated directly.
lastTime
Used internally when timing seconds.
client
The object to cue: when the timer goes off.
Methods
- Notes
< Previous: The Room Class Next: The InvItem Class >