X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=informqr%2Finformqr.md;h=b91f17e40744d7f528144c62704d4ce4b47f7724;hb=bdf7cc9f2cabb6bf9f350e91878990f42d1ad099;hp=4001497135bb5251e849ae38243a985bcd5f42b3;hpb=64c1ee13ba0231e8aaa62b3c91c203bc0dcf0314;p=inform-resources.git diff --git a/informqr/informqr.md b/informqr/informqr.md index 4001497..b91f17e 100644 --- a/informqr/informqr.md +++ b/informqr/informqr.md @@ -1,4 +1,4 @@ -% Inform in four minutes +o% Inform in four minutes % Roger Firth A quick reference to the Inform programming language. @@ -236,3 +236,51 @@ array, the entries can be accessed using A property variable inherited from an object's class is addressed by *object.class::property*; this gives the original value prior to any changes within the object. + +Manipulating the object tree +---------------------------- + +To change object relationships at run-time: + + move object to parent_object ; + remove object ; + +To return the parent of an object (or nothing): + + parent(object) + +To return the first child of an object (or nothing): + + child(object) + +To return the adjacent child of an object's parent (or nothing): + + sibling(object) + +To return the number of child objects directly below an object: + + children(object) + +Message passing +--------------- + +To a class: + + class.remaining() + class.create() + class.destroy(object) + class.recreate(object) + class.copy(to_object,from_object) + +To an object: + + object.property(a1,a2, ... a7) + +To a routine: + + routine.call(a1,a2, ... a7) + +To a string: + + string.print() + string.print_to_array(array) \ No newline at end of file