示例#1
0
    public static void Main(string[] args)
    {
        Character1Class character1 = new Character1Class("Frodo");
        SwordClass      sword      = new SwordClass("TestSword");

        character1.Weapons.Add(sword);
        character1.Equip(sword);
        Console.ReadKey();
    }
示例#2
0
        public static void Main(string[] args)
        {
            Character1Class character = new Character1Class("Zoltan the Powerful");
            SwordClass      sword     = new SwordClass("Holy Avenger");

            character.Equip(sword);
            character.Attack();
            Console.ReadKey();
        }