mirror of
https://github.com/ganelson/inform.git
synced 2024-07-02 23:14:57 +03:00
initial commit
This commit is contained in:
parent
413124a37c
commit
75ce6cb466
|
@ -221,9 +221,9 @@ only absolute times; we need the following for relative ones.
|
|||
if (scene_endings-->(sc-1) <= 1) return RunTimeProblem(RTP_SCENEHASNTENDED, sc);
|
||||
}
|
||||
switch (task) {
|
||||
1: return (the_time - scene_started-->(sc-1))%(TWENTY_FOUR_HOURS);
|
||||
1: return (TWENTY_FOUR_HOURS + the_time - scene_started-->(sc-1))%(TWENTY_FOUR_HOURS);
|
||||
2: return scene_started-->(sc-1);
|
||||
3: return (the_time - scene_ended-->(sc-1))%(TWENTY_FOUR_HOURS);
|
||||
3: return (TWENTY_FOUR_HOURS + the_time - scene_ended-->(sc-1))%(TWENTY_FOUR_HOURS);
|
||||
4: return scene_ended-->(sc-1);
|
||||
}
|
||||
];
|
||||
|
|
24
inform7/Tests/Test Cases/TrainStop.txt
Normal file
24
inform7/Tests/Test Cases/TrainStop.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
Station is a room.
|
||||
Train Stop is a scene.
|
||||
Flying Scotsman is a thing.
|
||||
|
||||
When play begins:
|
||||
now the time of day is 11:57 pm.
|
||||
|
||||
When Train Stop begins:
|
||||
now the Flying Scotsman is in the Station;
|
||||
say "The Flying Scotsman pulls up at the platform, to a billow of steam and hammering."
|
||||
|
||||
When Train Stop ends:
|
||||
now the Flying Scotsman is nowhere;
|
||||
if the player is in the Station, say "The Flying Scotsman inches away, with a squeal of released brakes, gathering speed invincibly until it disappears around the hill. All is abruptly still once more."
|
||||
|
||||
Every turn: say time of day.
|
||||
|
||||
Train Stop begins when the player is in the Station for the third turn.
|
||||
|
||||
Train Stop ends when the time since Train Stop began is 3 minutes.
|
||||
|
||||
[ / z / z / z / z / z / z".]
|
||||
|
||||
Test me with "x self".
|
Loading…
Reference in a new issue