Game Scenarios
Tab "OpenMap"
has special tools for
creating game scenarios. They include a separate
control panel for
moving object. From this panel you can control
the course and speed of the object and
change its position abruptly.
In addition using a
button "Task" on the
panel, you can run a variety of tasks
for this object. Tasks
is usually implemented
as scenarios. Consider
that a concrete
example.
Manual control of objects
and running scenarios with the button "Task"
1. Start run_protege.sh (Linux, Mac OS X) or run_protege.bat
(Windows).
2. Open the project Air.pprj, go to the "Drools" Tab.
3. Create RuleBase and evaluate the "Create DroTimer from RuNA"
script.
4. Go to the "OpenMap" Tab and add two objects to the map.
4.1 Menu Protege -> Add Objects.
4.2 Select Class: IGIS -> MapOb -> OMGraphic ->
OMRaster -> NavOb
4.3 Select Instances: B-52
and Tu-16. OK.
5. Start timer and set time scale to 128:1.
6. Open control panels for the objects with a help of a "Control
Object" button (with a steering wheel icon).
7. Try to control objects manually by changing their courses and
speeds.
8. To use the button "Task", you must first execute a command "Task Scenario
Support" using an "Execute Command" button (with a
megaphone icon).
9. Click the "Task" button and select "task.Flight to City".
Panel for changing scenario parameters appears. Leave it as is
and click OK. Plane should go to Murmansk.
10. Next plane send to Kotlas by updating a "?city1" field in
the parameters panel.
11. You can drop a bomb during these flights by executing a
corresponding task (unfortunately,
only one bomb :()
Requirements for the task
scenarios
1. The label of the task
must be equal to the title
of the scenario.
2. The context of the scenario must contain a variable
"?navob" in which will
be placed an object who starts the task.
3. Tasks are assigned not to individual objects but to object types,
which, in turn, are attributed to objects. See the "bomber" type in the example
above.
If something goes wrong send me the Java console output and the
problem description.
Ru (mailto:sorokin@oogis.ru)