示例#1
0
        public PositionPlayer(PersonnalInfo _playerInfo, DefensiveAttributes _defensiveAttributes, BAT_HAND _batHand, THROW_HAND _throwHand, PlateAppearanceRatings _againstLefty, PlateAppearanceRatings _againstRighty, RawPhysicalAttributes _physicalAttributes)
            : base(_playerInfo, _defensiveAttributes, _throwHand)
        {
            againstLefty = _againstLefty;
            againstRighty = _againstRighty;
            physicalAttributes = _physicalAttributes;

            batHand = _batHand;
        }
示例#2
0
 public int KRate(THROW_HAND _againstHand)
 {
     if (_againstHand == THROW_HAND.LEFT)
     {
         return againstLefty.KRate;
     }
     else //else righty
     {
         return againstRighty.KRate;
     }
 }
示例#3
0
文件: Player.cs 项目: sathalom/BBSim
 public Player(PersonnalInfo _playerInfo, DefensiveAttributes _defensiveAttributes, THROW_HAND _throwingHand)
 {
     playerInfo = _playerInfo;
     defensiveAttributes = _defensiveAttributes;
     throwingHand = _throwingHand;
 }