How would I go about changing a variable in the World from within an Actor?
Thanks in advance.


MyWorld mw; mw = (MyWorld) getWorld(); mw.adjustVariable(-1); if (mw.getVariable() == 0) doWhatNotGood();
if (((MyWorld) getWorld()).VARIABLE == 'x')