Claims Adjustment
We start by creating a camera and a photograph object. As usual when we want to have a kind of object that can be dispensed in bulk, we start off with a bunch of identical instances of the object out of play (in this case, kept in an out-of-play container called "film roll"); we can then move them into play and give them characteristics when they're needed.
Each photograph can depict exactly one thing -- we're assuming that the player is not a landscape photographer here -- so we create a relation to indicate what is shown by each photograph. We'll then use that relation to determine how photographs are described, named, and parsed:
This allows the player to refer to any photograph by its subject: useful if we have a large number of them.
Now we create an action to let the player use the camera and generate these photograph objects:
Now we use two activities from the Activities chapter to describe the photographs to the player more elegantly:
And finally we provide a brief scenario to give the player something to take pictures of:
Test me with "photograph degas / i / photograph degas / i / x photograph of degas / photograph me / x photograph of me / i / photograph vase / photograph camera / photograph collection / g / i / test more".
Despite the fancy name, this is no more than a closet -- albeit a closet with its own special circuit on the house alarm.
You can see a small Degas, a Ming vase and a collection of South African krugerrands here.
>(Testing.)
>[1] photograph degas
(with the cheap instant camera)
Your camera instantly spits out a photograph of a small Degas.
>[2] i
You are carrying:
a photograph of a small Degas
a cheap instant camera
insurance forms
a first-class stamp
a security envelope
>[3] photograph degas
(with the cheap instant camera)
Your camera instantly spits out a photograph of a small Degas.
>[4] i
You are carrying:
two photographs of a small Degas
a cheap instant camera
insurance forms
a first-class stamp
a security envelope
>[5] x photograph of degas
It shows a small Degas.
>[6] photograph me
(with the cheap instant camera)
Your camera instantly spits out a photograph of yourself.
>[7] x photograph of me
It shows yourself.
>[8] i
You are carrying:
three photographs of yourself and a small Degas (variously)
a cheap instant camera
insurance forms
a first-class stamp
a security envelope
>[9] photograph vase
(with the cheap instant camera)
Your camera instantly spits out a photograph of a Ming vase.
>[10] photograph camera
(with the cheap instant camera)
Sadly impossible.
>[11] photograph collection
(with the cheap instant camera)
Your camera instantly spits out a photograph of a collection of South African krugerrands.
>[12] g
(with the cheap instant camera)
Your camera instantly spits out a photograph of a collection of South African krugerrands.
>[13] i
You are carrying:
six photographs of yourself, a small Degas, a Ming vase and a collection of South African krugerrands (variously)
a cheap instant camera
insurance forms
a first-class stamp
a security envelope
>[14] test more
(Testing.)
>[15] x photograph of collection
It shows a collection of South African krugerrands.
>[16] x photograph of krugerrands
It shows a collection of South African krugerrands.
>[17] x photograph of collection of south african krugerrands
It shows a collection of South African krugerrands.
>[18] photograph photograph of degas
(with the cheap instant camera)
Your camera instantly spits out a photograph of a photograph of a small Degas.
>[19] x photograph of photograph of degas
It shows a photograph of a small Degas.