This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
welleid
wrote ...
2013/6/6
Accessing variable from world
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
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.
X