Hey, i wanna know how to o get a location ("X" and "Y")from a class to another but respecting encapsulation?
I wanna get location of gamer.class and use it on monster.class but all my variables need to be private.
Im using a method on gamer.class to get the X and Y position.
And on monster.class im trying to get the values like this: X = getWorldOfType(gamer.class).getXmethod();
I got an ERROR: "Cannot cast MyWorld to actor"

