I am trying to find the width of a world but keep getting an static/non-static error.
How do I get the static CatWorld width in my Cat class? Thanks in advance!
1 2 3 4 5 6 7 | public class Cat extends Actor { private boolean tired = false ; private boolean hungry = false ; private boolean bored = true ; private boolean right = true ; //let the cat start off moving right private int worldWidth = CatWorld.getWidth(); |