Ejemplo n.º 1
0
 private void updateMoveLocation(object sender, MoveEventArgs e)
 {
     Debug.WriteLine("MOVE RECORDED AT " + (sender as Cycle).MovementController.Position + " | Current Head Location: " + (sender as Cycle).MovementController.HeadLocation + " | Positions Map Location: " + Utilities.ToMapLocation((sender as Cycle).MovementController));
 }
Ejemplo n.º 2
0
 private void updateMoveLocation(object sender, MoveEventArgs e)
 {
     Debug.WriteLine("MOVE RECORDED AT " + (sender as Cycle).MovementController.Position + " | Current Head Location: " + (sender as Cycle).MovementController.HeadLocation + " | Positions Map Location: " + Utilities.ToMapLocation((sender as Cycle).MovementController));
 }
Ejemplo n.º 3
0
 public void BroadcastMovement(object sender, MoveEventArgs e)
 {
     var compressedPayload = PayloadManager.BuildMovementPayload(sender as Cycle, e.Direction);
     getGameContext().Clients.Group(_relayGroup).movementPayload(compressedPayload);
 }
Ejemplo n.º 4
0
        public void BroadcastMovement(object sender, MoveEventArgs e)
        {
            var compressedPayload = PayloadManager.BuildMovementPayload(sender as Cycle, e.Direction);

            getGameContext().Clients.Group(_relayGroup).movementPayload(compressedPayload);
        }