add examples
This commit is contained in:
parent
8504ba52f6
commit
42757ddc4f
35 changed files with 1104 additions and 609 deletions
28
examples/woods/rules/r_attack_rhs.od
Normal file
28
examples/woods/rules/r_attack_rhs.od
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Our entire LHS (don't delete anything)
|
||||
|
||||
# Some man is afraid of some animal:
|
||||
|
||||
man:RAM_Man
|
||||
|
||||
animal:RAM_Animal
|
||||
|
||||
manAfraidOfAnimal:RAM_afraidOf (man -> animal)
|
||||
|
||||
|
||||
# Both man and animal have an associated state:
|
||||
|
||||
manState:RAM_ManState
|
||||
|
||||
man2State:RAM_of (manState -> man)
|
||||
|
||||
animalState:RAM_AnimalState
|
||||
|
||||
animal2State:RAM_of (animalState -> animal)
|
||||
|
||||
|
||||
|
||||
# Animal attacks man:
|
||||
|
||||
:RAM_attacking(animalState -> manState) {
|
||||
RAM_starttime = `get_slot_value(get_all_instances("Clock")[0][1], "time")`;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue