This wiki is out of date, use the continuation of this wiki instead

Father

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:26, 26 March 2007 (edit)
FCR (Talk | contribs)

← Previous diff
Current revision (00:21, 19 December 2007) (edit) (undo)
Sandman (Talk | contribs)
m
 
(8 intermediate revisions not shown.)
Line 1: Line 1:
 +[[category:variables]]
 +[[category:predefined]]
 +[[category:local variables]]
 +
 +[[Local variables|'''Up to Local Variables''']]
 +
 +----
 +
 +
== Definition == == Definition ==
-Father is a predefined [[local variable]]. Every [[process]] has this varaible as soon as the [[frame]]; statement is reached within the process. Father holds the [[ProcessID]] of the process that called the current process. There are several other [[local variables]] which refer to the [[ProcessID]] of a related [[process]]:+'''INT''' father
 + 
 +'''Father''' is a predefined [[local variable]]. '''Father''' holds the [[ProcessID]] of the [[process]]/[[function]] that called the current [[process]]/[[function]]. There are several other local variables which refer to the ProcessID of a related process:
*[[Son]] *[[Son]]
*[[Bigbro]] *[[Bigbro]]
*[[Smallbro]] *[[Smallbro]]
- 
== Example == == Example ==
<pre> <pre>
-process first_process() //declaration of the first process+Program example;
-begin+Begin
- second_process(); //which calls the second process+ first_process();
- loop+ Loop
- frame; //this loop makes "first_process()" a process rather than a function+ frame;
- end+ End
-end+End
 + 
 +Process first_process() // Declaration of the first process
 +Begin
 + second_process(); // Call the second process
 + Loop
 + frame; // This loop makes "first_process()" a process rather than a function
 + End
 +End
-process second_process() //declaration of another process+Process second_process() //declaration of another process
-begin+Begin
- x = father.x; //These two lines use the father variable to move this process+ x = father.x; // These two lines use the father variable to move this process
- y = father.y; //to the position of first_process, as the father variable here holds the ProcessID of "first_process()"+ y = father.y; // to the position of first_process, as the father variable here
- loop+ // holds the ProcessID of "first_process()"
- frame; + Loop
- end+ frame;
-end+ End
 +End
</pre> </pre>
-More information on [[functions]] and [[processes]].+Used in example: [[process]], [[function]], [[processID]]
-[[category:predefined variables]]+{{Locals}}

Current revision

Up to Local Variables



[edit] Definition

INT father

Father is a predefined local variable. Father holds the ProcessID of the process/function that called the current process/function. There are several other local variables which refer to the ProcessID of a related process:

[edit] Example

Program example;
Begin
    first_process();
    Loop
        frame;
    End
End

Process first_process()  // Declaration of the first process
Begin
    second_process();  // Call the second process
    Loop
        frame; // This loop makes "first_process()" a process rather than a function
    End
End

Process second_process()  //declaration of another process
Begin
    x = father.x; // These two lines use the father variable to move this process
    y = father.y; // to the position of first_process, as the father variable here
                  // holds the ProcessID of "first_process()"
    Loop
        frame;  
    End
End

Used in example: process, function, processID


Local variables
AngleBigbroFatherFileFlagsGraphIdRegionReservedResolutionSizeSize_xSize_ySmallbroSonXYZ
Personal tools