コード例 #1
0
ファイル: Character.cs プロジェクト: Telorath/Capers
        public Character()
        {
            Power Punch = new HandtoHand();

            DefaultAttack      = (IDealsDamage)Punch;
            Punch.User         = this;
            Punch.Name         = "Punch";
            Punch.EnergySource = this;
            (Punch as HandtoHand).calculatecost();
        }
コード例 #2
0
ファイル: Character.cs プロジェクト: Telorath/Capers
 public Character()
 {
     Power Punch = new HandtoHand();
     DefaultAttack = (IDealsDamage)Punch;
     Punch.User = this;
     Punch.Name = "Punch";
     Punch.EnergySource = this;
     (Punch as HandtoHand).calculatecost();
 }