f60c97a504
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@735 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
=================================================================
|
|
Logtalk - Object oriented extension to Prolog
|
|
Release 2.14.6
|
|
|
|
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
|
|
=================================================================
|
|
|
|
To load all objects in this example consult the bricks.loader utility
|
|
file (note that the *.loader files are Prolog files).
|
|
|
|
You will need to load the objects in the roots and relations
|
|
examples (consulting the corresponding roots.loader and relations.loader
|
|
files).
|
|
|
|
You will also need to consult the following files in the library directory:
|
|
events.loader, types.loader, metapredicates.loader, and hierarchies.loader.
|
|
Alternatively, you may load the library all.loader file to load all library
|
|
entities.
|
|
|
|
This folder contains an example of representation and handling of
|
|
relations using events. We have instances of class brick and a binary
|
|
brick_stack relation between the bricks. Every time we move a brick, we
|
|
want the bricks on top of it to move along. If we break the stack by
|
|
moving a middle brick, we want to automatically destroy the
|
|
corresponding relation tuple.
|
|
|
|
It's instructive to use the debugger to better understand this example.
|
|
Set spy points in all brick instances and then activate the debugger.
|