Difference between revisions of "Script Classes for Adventure Games/PicView Class"
From SCI Wiki
Jump to navigationJump to search| (One intermediate revision by the same user not shown) | |||
| Line 39: | Line 39: | ||
| | ||
| − | + | ==<br /> The PicView Class == | |
| + | Objects of class PicView keep information on Views which have been added to the picture with addToPic: so that they will be present in a restored game. In order to use the PicView class explicitly it must be added to the addToPics List and the addToPics doit method must be invoked. | ||
| + | |||
| + | <blockquote> | ||
| + | i.e. | ||
| + | |||
| + | <div class="CodeBlockHeader">Code:</div> | ||
| + | <syntaxhighlight lang="sci"> | ||
| + | (instance myPicView of PicView | ||
| + | (properties | ||
| + | view vMyView | ||
| + | x 160 | ||
| + | y 100 | ||
| + | z 10 | ||
| + | ) | ||
| + | ) | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | and in the rooms init method | ||
| + | |||
| + | <div class="CodeBlockHeader">Code:</div> | ||
| + | <syntaxhighlight lang="sci"> | ||
| + | (addToPics | ||
| + | add. myPicView, | ||
| + | doit: | ||
| + | ) | ||
| + | </syntaxhighlight> | ||
| + | </blockquote> | ||
| + | |||
| + | {| | ||
| + | |width= "125"|In file:||actor.sc | ||
| + | |- | ||
| + | |Inherits from:||Feature | ||
| + | |- | ||
| + | |Inherited by:||none | ||
| + | |} | ||
| + | |||
| + | ===<br /> Properties === | ||
| + | |||
| + | <blockquote> | ||
| + | ====<br /> view ==== | ||
| + | ====<br /> loop ==== | ||
| + | ====<br /> cel ==== | ||
| + | ====<br /> x <br /> y <br /> z ==== | ||
| + | ====<br /> priority ==== | ||
| + | ====<br /> signal ==== | ||
| + | <blockquote>The values of the corresponding properties in the View which was the progenitor of this PicView.</blockquote> | ||
| + | </blockquote> | ||
| + | |||
| + | ===<br /> Methods === | ||
| + | <blockquote></blockquote> | ||
| | ||
Latest revision as of 23:59, 20 January 2016
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 PicView Class
Objects of class PicView keep information on Views which have been added to the picture with addToPic: so that they will be present in a restored game. In order to use the PicView class explicitly it must be added to the addToPics List and the addToPics doit method must be invoked.
i.e.
Code:(instance myPicView of PicView (properties view vMyView x 160 y 100 z 10 ) )and in the rooms init method
Code:(addToPics add. myPicView, doit: )
| In file: | actor.sc |
| Inherits from: | Feature |
| Inherited by: | none |
Properties
view
loop
cel
x
y
z
priority
signalThe values of the corresponding properties in the View which was the progenitor of this PicView.
Methods
- Notes
< Previous: The Ego Class Next: The Cycling Classes >