Difference between revisions of "Script Classes for Adventure Games/Timer2 Class"
From SCI Wiki
Jump to navigationJump to search| Line 39: | Line 39: | ||
| | ||
| − | + | ==<br /> 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. | ||
| + | |||
| + | {| | ||
| + | |width= "125"|In file:||system.sc | ||
| + | |- | ||
| + | |Inherits from:||Object | ||
| + | |- | ||
| + | |Inherited by:||none | ||
| + | |} | ||
| + | |||
| + | ===<br /> Properties === | ||
| + | |||
| + | <blockquote> | ||
| + | ==== 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> | ||
| + | |||
| + | ==== seconds | ||
| + | <blockquote>The interval to be timed measured in seconds. This is set by the setReal: method and should not be manipulated directly.</blockquote> | ||
| + | |||
| + | ==== lastTime | ||
| + | <blockquote>Used internally when timing seconds.</blockquote> | ||
| + | |||
| + | ==== client | ||
| + | <blockquote>The object to cue: when the timer goes off.</blockquote> | ||
| + | |||
| + | |||
| + | ===<br /> Methods === | ||
| + | <blockquote></blockquote> | ||
| + | </blockquote> | ||
| | ||
Revision as of 01:40, 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 >