Search found 2 matches
- March 14th, 2017, 9:59 am
- Forum: Everything
- Topic: Snake Game Tutorial 14a
- Replies: 69
- Views: 61878
Re: Snake Game Tutorial 14a
Dear Albinopapa, thanks for comprehensive response. Could you talk about this kind of initialization too :arrow: Board::Board( Graphics& gfx ) : gfx( gfx ) {} and an other question is that in the Board class, Chili has interred random number generator in the initializer. why didn'd he just generate ...
- March 13th, 2017, 10:20 am
- Forum: Everything
- Topic: Snake Game Tutorial 14a
- Replies: 69
- Views: 61878
Re: Snake Game Tutorial 14a
Hi guys. I have a problem that has stopped me for a while. The problem is that I cannot get what Cili is doing with Initializers and Constructions. At the first in tutorial 12 he mentioned that we should use constructors because it is good for encapsulation and setters and getters are not good but, ...