internal bool Buy( int money, Argent Ar ) { if (money >= price ) { state = "activé"; Ar.UpdateAfterBuy( price ); return true; } else { return false; } }
public user() { rnd = new Random(); random = new Random(); Action A = new Action(this); News N = new News(this); Bonus B = new Bonus( this ); Argent Ar = new Argent( this ); Employer E = new Employer( this ); action = A; news = N; bonus = B; argent = Ar; employer = E; }
internal void BuyBonus( int prix, Argent Ar ) { Ar.UpdateAfterBuy( prix ); }