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
qwertyuiop
wrote ...
2014/4/6
How to get the current world name
qwertyuiop
2014/4/6
#
How would I get the name of the current world so I can use it in an if statement?
Pointifix
2014/4/6
#
if(((WorldName)getWorld()).statement == ...) he will only do this if, if the actor lives in den given world
danpost
2014/4/6
#
String type = getWorld().getClass().getName();
But I do not think that is what you are looking for. Can you be more specific as to why you need the class name and how you want to use it in the 'if' statement?
You need to login to post a reply.
X