示例#1
0
 public bool addMisc(Misc m)
 {
     if(m.getWeight() + weight > weightLimit) {
         return false;
     } else {
         miscs.Add(m);
         weight += m.getWeight();
         return true;
     }
 }