コード例 #1
0
        static void Main(string[] args)
        {
            ForeignCenter ym = new ForeignCenter()
            {
                Name = "姚明"
            };
            Forward bdr = new Forward()
            {
                Name = "巴蒂尔"
            };
            Guard mkgld = new Guard()
            {
                Name = "麦克格雷迪"
            };
            Translator translator = new Translator(ym);

            bdr.Attack();
            mkgld.Defense();
            translator.Attack();
            Console.ReadKey();
        }
コード例 #2
0
 public Translator(ForeignCenter center)
 {
     wjzf = center;
 }