コード例 #1
0
ファイル: Person.cs プロジェクト: kosski/QAgora
 public void giveBonus(bonuses profit)
 {
     if (profit.value != -1)
     {
         this.setSize(getSize() + profit.size);
         Speed   += profit.speed;
         score   += profit.value;
         modTime += profit.modTime;
     }
 }
コード例 #2
0
 public PoinT(int x, int y, bonuses prop)
 {
     this.setX(x);
     this.setY(y);
     this.setSize(4);
     this.setValue(prop.value);
     this.prop = prop;
     this.newRect();
     rect.Fill = prop.brush;
     //Debug.WriteLine("new Point | "+this.id+" | " + getX() + " : " + getY());
 }
コード例 #3
0
 public PoinT(bonuses prop) : this(r.Next(55) + 4, r.Next(40) + 4, prop)
 {
 }