public void MoveOutListener(MoveOutEvent moveOutEvent) { //Simulate drawing move army animations - in this case just skip MoveInEvent moveInEvent = new MoveInEvent(moveOutEvent.Next, moveOutEvent.Current, moveOutEvent.MoveToNextEvent); JEventBus.GetDefault().Post(moveInEvent); }
public void MoveToNextListener(MoveToNextEvent moveToNextEvent) { Point current = moveToNextEvent.CalculatedPath[moveToNextEvent.CurrentIndex]; Point next = moveToNextEvent.CalculatedPath[moveToNextEvent.CurrentIndex + 1]; MoveOutEvent moveOutEvent = new MoveOutEvent(current, next, moveToNextEvent); JEventBus.GetDefault().Post(moveOutEvent); }