event.setEventCondition(eventCondition);
this.mainEvents.add(event);
}
public void addEvents() {
Event event;
EventCondition eventCondition;
eventCondition = new EventCondition();
eventCondition.addPointCondition(new PointCondition(new Point(440, 284),
getRoomSystemColorFrom(), getRoomSystemColorTo(), true));
eventCondition.addPointCondition(new PointCondition(new Point(175, 294),
colorSysButtonFrom, colorSysButtonTo, true));
event = new Event();
event.setEventType(EventType.ET_SYSTEM_MESSAGE);
event.setEventCondition(eventCondition);
this.events.add(event);
/*==============================================*/
eventCondition = new EventCondition();
eventCondition.addPointCondition(new PointCondition(new Point(440, 284),
getRoomSystemColorFrom(), getRoomSystemColorTo(), true));
eventCondition.addPointCondition(new PointCondition(new Point(175, 273),
colorSysButtonFrom, colorSysButtonTo, true));
event = new Event();
event.setEventType(EventType.ET_SYSTEM_MESSAGE_2);
event.setEventCondition(eventCondition);
this.events.add(event);
/*==============================================*/
/*
eventCondition = new EventCondition();
eventCondition.addPointCondition(new PointCondition(new Point(262, 334), new Color(29, 46,
28), new Color(36, 52, 36), true));
event = new Event();
event.setEventType(EventType.ET_WAIT_ACTION);
event.setEventCondition(eventCondition);
// events.add(event);
*/
/*==============================================*/
eventCondition = new EventCondition();
eventCondition.addPointCondition(new PointCondition(new Point(267, 325),
new Color(72, 122, 72), new Color(92, 142, 92), true));
eventCondition.addPointCondition(new PointCondition(new Point(350, 324),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(350, 333),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(350, 342),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(421, 325),
colorActionButtonFrom, colorActionButtonTo, true));
event = new Event();
event.setEventType(EventType.ET_NEED_WAIT_BB);
event.setEventCondition(eventCondition);
events.add(event);
/*==============================================*/
eventCondition = new EventCondition();
eventCondition.addPointCondition(new PointCondition(new Point(267, 325),
colorActionButtonFrom, colorActionButtonTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(350, 324),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(350, 333),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(350, 342),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(421, 324),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(421, 323),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(421, 342),
ColorBackgFrom, ColorBackgTo, true));
event = new Event();
event.setEventType(EventType.ET_SET_BB);
event.setEventCondition(eventCondition);
events.add(event);
/*==============================================*/
eventCondition = new EventCondition();
eventCondition.addPointCondition(new PointCondition(new Point(267, 325),
colorActionButtonFrom, colorActionButtonTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(328, 325),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(411, 325),
colorActionButtonFrom, colorActionButtonTo, true));
event = new Event();
event.setEventType(EventType.ET_ACTION_FOLD_ANY_RAISE);
event.setEventCondition(eventCondition);
this.events.add(event);
/*==============================================*/
eventCondition = new EventCondition();
eventCondition.addPointCondition(new PointCondition(new Point(267, 325),
colorActionButtonFrom, colorActionButtonTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(328, 325),
ColorBackgFrom, ColorBackgTo, true));
eventCondition.addPointCondition(new PointCondition(new Point(411, 325),
ColorBackgFrom, ColorBackgTo, true));
event = new Event();
event.setEventType(EventType.ET_ACTION_FOLD_CALL);
event.setEventCondition(eventCondition);
this.events.add(event);
}