コード例 #1
0
 public Roller(string name, int val)
 {
     this.name       = name != null ? name : "default";
     this.value      = val;
     this.bonuses    = new Bonuses();
     this.totalBonus = bonuses.getBon();
 }
コード例 #2
0
    //public virtual int GetMod(int newMod) {
    //return GetValue()/newMod;
    //}

    public void addBonus(Bonus bonus)
    {
        bonuses.addBonus(bonus);
        totalBonus = bonuses.getBon();
    }