Code clarification

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Code clarification

KiranMutt
Hi Howard,
 
Just to clarify some of the code snippet
 

        " Add to the current space. "
        replica := hand world ownerMorph harness avatar replica.
        root := replica future root.           
        root future addChild: eventFrame.

What does  "hand world ownerMorph harness avatar replica" convey.

I know in bits and pieces ( hand is cursor, world is the outermostcontainer ..etc)

Overall could you pls explain?

Also how does  'hand' get defined to CPlayer or some such classes, ( how does it get the context without defining the class in which it resides)

Apologies for my knowledge.

 

Thanks & Regards

Kiran

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Code clarification

Joshua Gargus-2

On Mar 15, 2007, at 11:40 PM, Kiran wrote:

Hi Howard,
 
Just to clarify some of the code snippet
 

        " Add to the current space. "
        replica := hand world ownerMorph harness avatar replica.
        root := replica future root.           
        root future addChild: eventFrame.

What does  "hand world ownerMorph harness avatar replica" convey.

"hand world ownerMorph" is all Squeak-Morphic stuff.  "harness" is the entry-point to Croquet.  "avatar" is the object that mediates your interactions with the world (eg: movement), and replica is the replicated version of your avatar that exists within all participants' replicated islands.

Josh

I know in bits and pieces ( hand is cursor, world is the outermostcontainer ..etc)

Overall could you pls explain?

Also how does  'hand' get defined to CPlayer or some such classes, ( how does it get the context without defining the class in which it resides)

Apologies for my knowledge.

 

Thanks & Regards

Kiran

 
 
 

Reply | Threaded
Open this post in threaded view
|

Re: Code clarification

KiranMutt
Thanks for the inputs.
 
Also hand variable is an instance variable..so i understand that should be accessible to all subclasses derived from CPlayer ( in this context CroquetMenuProject.
 
Regards
Kiran
 


 
On 3/16/07, Joshua Gargus <[hidden email]> wrote:

On Mar 15, 2007, at 11:40 PM, Kiran wrote:

Hi Howard,
 
Just to clarify some of the code snippet
 

        " Add to the current space. "
        replica := hand world ownerMorph harness avatar replica.
        root := replica future root.           
        root future addChild: eventFrame.

What does  "hand world ownerMorph harness avatar replica" convey.

"hand world ownerMorph" is all Squeak-Morphic stuff.  "harness" is the entry-point to Croquet.  "avatar" is the object that mediates your interactions with the world (eg: movement), and replica is the replicated version of your avatar that exists within all participants' replicated islands.

 
Josh

I know in bits and pieces ( hand is cursor, world is the outermostcontainer ..etc)

Overall could you pls explain?

Also how does  'hand' get defined to CPlayer or some such classes, ( how does it get the context without defining the class in which it resides)

Apologies for my knowledge.

 
 

Thanks & Regards

Kiran