コード例 #1
0
        static void Main(string[] args)
        {
            Player b = new Forwards("巴蒂尔");

            b.Attack();
            Player m = new Gurads("麦克格雷迪");

            b.Defense();

            Player y = new Interpreter("姚明");

            y.Attack();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Player a = new Forwards("巴蒂尔");

            a.Attack();
            Player b = new Center("麦克雷");

            b.Defense();
            Player ym = new Translator("姚明");

            ym.Attack();

            Console.Read();
        }
コード例 #3
0
        public static void Main(string[] args)
        {
            Target target = new TargetAdapter();

            target.Request();

            Player player1 = new Forwards("巴蒂尔");

            player1.Attact();
            Player player2 = new Guards("麦迪");

            player2.Defend();
            Player specialPlayer = new Translator("姚明");

            specialPlayer.Attact();
            specialPlayer.Defend();

            Console.ReadLine();
        }