Пример #1
0
 public CachedPlayerAction(CachedPlayer affectedPlayer, Point targetPoint, ActionType actionType, bool isActionToGetBall)
 {
     AffectedPlayer = affectedPlayer;
     TargetPoint = targetPoint;
     Type = actionType;
     IsActionToGetBall = isActionToGetBall;
 }
Пример #2
0
        /// <summary>
        /// Converts a PlayerAction to a PlayerActionHolder
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        public CachedPlayerAction ConvertToHolder(PlayerAction action)
        {
            CachedPlayer affectedPlayer = null;
            if (action.AffectedPlayer != null)
            {
                affectedPlayer = new CachedPlayer(action.AffectedPlayer.Id, action.AffectedPlayer.TeamId);
            }

            return new CachedPlayerAction(affectedPlayer, action.TargetPoint, action.Type, action.IsActionToGetBall);
        }
Пример #3
0
 public CachedRoundAction(CachedPlayerAction heldAction, CachedPlayer heldPlayer)
 {
     HeldAction = heldAction;
     HeldPlayer = heldPlayer;
 }