public class LampPost extends Actor { int currImage; //0 will represent LampPost off public LampPost() { currImage = 0; setImage("LampPost.png"); setRotation(90); //set rotation to north } public void act() { changeImage(); } private void changeImage() { if(currImage==0) { setImage("LampPost.png"); currImage = 1; } else if(currImage==1) { setImage("LampPostLIT.png"); currImage = 0; } } }

