Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }