// Path: core/src/nl/arjanfrans/mario/graphics/Tiles.java
// public class Tiles {
// 	private static TextureAtlas atlas = new TextureAtlas("data/tiles/mario_tileset.atlas"); 
// 
// 	public static Array<StaticTiledMapTile> getAnimatedTile(String name) {
// 		Array<AtlasRegion> regions = atlas.findRegions(name);
// 		Array<StaticTiledMapTile> frames = new Array<StaticTiledMapTile>();
// 		for(int i = 0; i < regions.size; i++) {
// 			frames.add(new StaticTiledMapTile(regions.get(i)));
// 		}
// 		return frames;
// 	}
// 	
// 	public static Animation getAnimation(float speed, String name) {
// 		Array<AtlasRegion> regions = atlas.findRegions(name);
// 		TextureRegion[] frames = new TextureRegion[regions.size];
// 		for(int i = 0; i < regions.size; i++) {
// 			frames[i] = regions.get(i);
// 		}
// 		return new Animation(speed, frames);
// 	}
// 	
// 	public static TextureRegion getTile(String name) {
// 		AtlasRegion ar = atlas.findRegion(name);
// 		TextureRegion[] tr = ar.split(ar.getRegionWidth(), ar.getRegionHeight())[0];
// 		return tr[0];
// 	}
// 	
// 	public static TextureRegion getTile8(String name) {
// 		AtlasRegion ar = atlas.findRegion(name);
// 		TextureRegion[] tr = ar.split(8, 8)[0];
// 		return tr[0];
// 	}
// 	
// 	public void dispose() {
// 		atlas.dispose();
// 	}
// 
// }


import nl.arjanfrans.mario.graphics.Tiles;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Touchable;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
package nl.arjanfrans.mario.model;




public class Flag extends Actor {
	private Animation animation;
	private float stateTime;
	private float endX;
	private float endY;
	private boolean down = false;
	private float bottomY;
	private float slideOffset = 2;
	
	public Flag(float x, float y, float width, float height, float endX, float endY) {
// Path: core/src/nl/arjanfrans/mario/graphics/Tiles.java
// public class Tiles {
// 	private static TextureAtlas atlas = new TextureAtlas("data/tiles/mario_tileset.atlas"); 
// 
// 	public static Array<StaticTiledMapTile> getAnimatedTile(String name) {
// 		Array<AtlasRegion> regions = atlas.findRegions(name);
// 		Array<StaticTiledMapTile> frames = new Array<StaticTiledMapTile>();
// 		for(int i = 0; i < regions.size; i++) {
// 			frames.add(new StaticTiledMapTile(regions.get(i)));
// 		}
// 		return frames;
// 	}
// 	
// 	public static Animation getAnimation(float speed, String name) {
// 		Array<AtlasRegion> regions = atlas.findRegions(name);
// 		TextureRegion[] frames = new TextureRegion[regions.size];
// 		for(int i = 0; i < regions.size; i++) {
// 			frames[i] = regions.get(i);
// 		}
// 		return new Animation(speed, frames);
// 	}
// 	
// 	public static TextureRegion getTile(String name) {
// 		AtlasRegion ar = atlas.findRegion(name);
// 		TextureRegion[] tr = ar.split(ar.getRegionWidth(), ar.getRegionHeight())[0];
// 		return tr[0];
// 	}
// 	
// 	public static TextureRegion getTile8(String name) {
// 		AtlasRegion ar = atlas.findRegion(name);
// 		TextureRegion[] tr = ar.split(8, 8)[0];
// 		return tr[0];
// 	}
// 	
// 	public void dispose() {
// 		atlas.dispose();
// 	}
// 
// }


// Path: core/src/nl/arjanfrans/mario/model/Flag.java
import nl.arjanfrans.mario.graphics.Tiles;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Touchable;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;

package nl.arjanfrans.mario.model;




public class Flag extends Actor {
	private Animation animation;
	private float stateTime;
	private float endX;
	private float endY;
	private boolean down = false;
	private float bottomY;
	private float slideOffset = 2;
	
	public Flag(float x, float y, float width, float height, float endX, float endY) {
		animation = Tiles.getAnimation(0.15f, "evil_flag");