This site requires JavaScript, please enable it in your browser!
Greenfoot back
welleid
welleid wrote ...

2013/6/6

Accessing variable from world

welleid welleid

2013/6/6

#
Hi, I simply need one thing, accessing a simple boolean from my World. The boolean is located in an Actor class, and I have to know it's value in a World class. Dont really know how to do this..
MrCohen MrCohen

2013/6/6

#
In your Actor: public boolean getMyBoolean () { return theBoolean; } In your World: boolean b = myActor.getMyBoolean();
You need to login to post a reply.