I need to find the opposite of GetWorld().ExampleMethod(). Anyone have an answer or am I grabbing at air?


1 2 | Person person = (Person) getObjects(Person. class ).get( 0 ); person.<< method name >>(); |
1 | ((Person) getObjects(Person. class ).get( 0 )).<< method name >>(); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | public class MyWorld extends World { Person person = new Person(); public MyWorld() { super ( 600 , 400 , 1 ); addObject(person, getWidth()/ 2 , getHeight()/ 2 ); ... } ... public void whatever() { ... person.<< method name >>(); ... |