package net.suncrescent.clicker;
import java.awt.Color;
import java.awt.Point;
import java.util.ArrayList;
import net.suncrescent.clicker.robot.action.Action;
import net.suncrescent.clicker.robot.action.ActionSource;
import net.suncrescent.clicker.robot.action.Condition;
import net.suncrescent.clicker.robot.action.Action.MouseAction;
import net.suncrescent.clicker.robot.action.Condition.ConditionType;
public class FarmVilleActionLoader implements ActionSource {
private ArrayList<Action> actionList = new ArrayList<Action>();
public FarmVilleActionLoader() {
// if 845,700 is blue
Condition oneButtonDialogIsVisible = new Condition(ConditionType.PIXEL_COLOR_MATCHES);
oneButtonDialogIsVisible.setConditionParameters(new Point(845, 700), new Color(2, 114, 171));
// if 899,699 is blue
Condition dialogIsVisible = new Condition(ConditionType.PIXEL_COLOR_MATCHES);
dialogIsVisible.setConditionParameters(new Point(899, 699), new Color(2, 114, 171));
// Setup Time
this.actionList.add(new Action(15000, 1216, 572, MouseAction.NONE));
// Dialog
this.actionList.add(new Action(600, 935, 703, MouseAction.NONE, oneButtonDialogIsVisible));
this.actionList.add(new Action(100, 935, 703, MouseAction.LEFT_CLICK, oneButtonDialogIsVisible));
// Dialog
this.actionList.add(new Action(600, 858, 703, MouseAction.NONE, dialogIsVisible));
this.actionList.add(new Action(100, 858, 703, MouseAction.LEFT_CLICK, dialogIsVisible));
// Northwest Stadium
this.actionList.add(new Action(600, 830, 725, MouseAction.NONE));
this.actionList.add(new Action(100, 820, 725, MouseAction.LEFT_CLICK));
// Mall
this.actionList.add(new Action(600, 1339, 583, MouseAction.NONE));
this.actionList.add(new Action(100, 1339, 583, MouseAction.LEFT_CLICK));
// North Hospital
this.actionList.add(new Action(600, 1552, 586, MouseAction.NONE));
this.actionList.add(new Action(100, 1552, 586, MouseAction.LEFT_CLICK));
// Petshop
this.actionList.add(new Action(600, 1709, 903, MouseAction.NONE));
this.actionList.add(new Action(100, 1709, 903, MouseAction.LEFT_CLICK));
// Drag Map
this.actionList.add(new Action(600, 1489, 891, MouseAction.NONE));
this.actionList.add(new Action(300, 1489, 891, MouseAction.LEFT_DOWN));
this.actionList.add(new Action(300, 869, 62, MouseAction.LEFT_UP));
// West Casino
this.actionList.add(new Action(600, 712, 202, MouseAction.NONE));
this.actionList.add(new Action(100, 712, 202, MouseAction.LEFT_CLICK));
// Flowers
this.actionList.add(new Action(600, 705, 493, MouseAction.NONE));
this.actionList.add(new Action(100, 705, 493, MouseAction.LEFT_CLICK));
// Stadium
this.actionList.add(new Action(600, 1105, 354, MouseAction.NONE));
this.actionList.add(new Action(100, 1105, 354, MouseAction.LEFT_CLICK));
// East Casino
this.actionList.add(new Action(600, 1298, 197, MouseAction.NONE));
this.actionList.add(new Action(100, 1298, 197, MouseAction.LEFT_CLICK));
// East Hospital
this.actionList.add(new Action(600, 1575, 336, MouseAction.NONE));
this.actionList.add(new Action(100, 1575, 336, MouseAction.LEFT_CLICK));
// South East Stadium
this.actionList.add(new Action(600, 1575, 636, MouseAction.NONE));
this.actionList.add(new Action(100, 1575, 636, MouseAction.LEFT_CLICK));
// Bowling
this.actionList.add(new Action(600, 592, 705, MouseAction.NONE));
this.actionList.add(new Action(100, 592, 705, MouseAction.LEFT_CLICK));
// Disco
this.actionList.add(new Action(600, 1140, 739, MouseAction.NONE));
this.actionList.add(new Action(100, 1140, 739, MouseAction.LEFT_CLICK));
// South West Hospital
this.actionList.add(new Action(600, 157, 324, MouseAction.NONE));
this.actionList.add(new Action(100, 157, 324, MouseAction.LEFT_CLICK));
// North West Hospital
this.actionList.add(new Action(600, 157, 202, MouseAction.NONE));
this.actionList.add(new Action(100, 157, 202, MouseAction.LEFT_CLICK));
// South West Stadium
this.actionList.add(new Action(600, 170, 705, MouseAction.NONE));
this.actionList.add(new Action(100, 170, 705, MouseAction.LEFT_CLICK));
// Drag Map
this.actionList.add(new Action(600, 393, 384, MouseAction.NONE));
this.actionList.add(new Action(300, 393, 384, MouseAction.LEFT_DOWN));
this.actionList.add(new Action(100, 715, 915, MouseAction.LEFT_UP));
this.actionList.add(new Action(600, 393, 384, MouseAction.NONE));
this.actionList.add(new Action(300, 393, 384, MouseAction.LEFT_DOWN));
this.actionList.add(new Action(150000, 693, 684, MouseAction.LEFT_UP));
}
public ArrayList<Action> getActionList() {
return this.actionList;
}
}