Difference between revisions of "Script Classes for Adventure Games/Locale Class"
From SCI Wiki
Jump to navigationJump to search(5 intermediate revisions by the same user not shown) | |||
Line 39: | Line 39: | ||
| | ||
− | + | ==<br /> The Locale Class == | |
+ | |||
+ | A Locale is similar to a Region in that it may encompass many Rooms, but its only purpose is to provide default responses to user input. Thus, a forest locale will provide generic responses to input like 'look forest', 'look tree', 'climb tree', etc. A locale is attached to a Room with the setLocales: method. | ||
| | ||
Line 52: | Line 54: | ||
| | ||
− | <span style="float: left">[[Script Classes for Adventure Games/ | + | <span style="float: left">[[Script Classes for Adventure Games/Region Class|< Previous: The Region Class]]</span> |
− | <span style="float: right">[[Script Classes for Adventure Games/ | + | <span style="float: right">[[Script Classes for Adventure Games/Room Class|Next: The Room Class >]]</span> |
| |
Latest revision as of 01:28, 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 Locale Class
A Locale is similar to a Region in that it may encompass many Rooms, but its only purpose is to provide default responses to user input. Thus, a forest locale will provide generic responses to input like 'look forest', 'look tree', 'climb tree', etc. A locale is attached to a Room with the setLocales: method.
- Notes
< Previous: The Region Class Next: The Room Class >