Ejemplo n.º 1
0
        public ClubStatus GetClub(ClubStatus ClubData)
        {
            ClubStatus result;

            result = this + ClubData;
            return(result);
        }
Ejemplo n.º 2
0
        public int GetClubTotal(ClubStatus ClubData, bool IsRankUp)
        {
            int result;

            result = (Power + Control + Impact + Spin + Curve + ClubData.Power + ClubData.Control + ClubData.Impact + ClubData.Spin + ClubData.Curve);
            if (IsRankUp)
            {
                result += 1;
            }
            return(result);
        }
Ejemplo n.º 3
0
        public static ClubStatus operator +(ClubStatus X, ClubStatus Y)
        {
            ClubStatus result = new ClubStatus()
            {
                Power   = Convert.ToUInt16(X.Power + Y.Power),
                Control = Convert.ToUInt16(X.Control + Y.Control),
                Impact  = Convert.ToUInt16(X.Impact + Y.Impact),
                Spin    = Convert.ToUInt16(X.Spin + Y.Spin),
                Curve   = Convert.ToUInt16(X.Curve + Y.Curve)
            };

            return(result);
        }