This site requires JavaScript, please enable it in your browser!
Greenfoot back
awesomepaulj@gmail.com
awesomepaulj@gmail.com wrote ...

2013/12/22

How to import a subclass.

i'am trying to import a subclass of world in a subclass of actor.
danpost danpost

2013/12/22

#
awesomepaulj@gmail.com wrote...
i'am trying to import a subclass of world in a subclass of actor.
I think you need to explain exactly what you are trying to do, as a subclass of world is always a subclass of world and can never be a subclass of actor.
erdelf erdelf

2013/12/22

#
if i understand u, u are searching for this
import greenfoot.World.yourWorld;
danpost danpost

2013/12/22

#
I think erdelf is on the right track (what you asked makes more sense that way). However, whichever way you meant, it would require you to add the JAVA file of the class into a specific folder within the 'Greenfoot/lib' folder.
erdelf erdelf

2013/12/22

#
yeah, thats true, i dont really know why he would want this
You need to login to post a reply.