<Code Omitted>what does it does? i have written this in my actor class but don't know what it does?
The line is equivalent to:
<Code Omitted>where line 1 declares a new variable, world, that can contain a reference to a
MyWorld object (an instance of
MyWorld) and line 2 assigns a
MyWorld object to the variable by getting a reference to the
World object the actor is in (using the
getWorld method, which returns a reference of a
World object