Newer
Older
HelloAndroid / RiverCrossingAI / src / sample / game / model / hotToPlay / HowToPlayScreen.java
package sample.game.model.hotToPlay;

import java.util.ArrayList;

import library.core.model.CoreModel;
import library.core.system.CoreImageData;

public class HowToPlayScreen extends CoreModel{


	private ArrayList<CoreImageData> backScreens;
	private int page;

	private boolean pageFlag;

	public HowToPlayScreen(ArrayList<CoreImageData> screens, float centerX,
			float centerY, float width, float height) {
		super(screens.get(0), centerX, centerY, width, height);

		this.backScreens=screens;

		this.pageFlag=false;
		this.page=0;
	}


	public void nextScreen(){
		page++;
		if(backScreens.size()<=page){
			page=backScreens.size()-1;

		}

		//”wŒi‚Ì•Ï�X
		this.setImageData(backScreens.get(page));

	}


}