Gotta admit, I couldn't keep a straight face after you've mentioned that the Infantry will just "accept" the bullet in the chest, haha! I like the little bit of humor inserted here and there throughout your video, keeps things interesting. Thanks John :)
I think accept takes an IVisitor, the interface that both SeigeBullet and StatsVisitor implement. I think this was automatically changed when he extracted IVisitor. IDE witchcraft.
Thank you. Except for one point, that was really clear and I'm sure I just missed something. At 10:33 { InfantryDude.accept(StatsVisitor); } I can't find where the accept call is defined to receive a StatsVisitor. It seemed to have accept(ed) a SeigeBullet. What did I miss?
Gotta admit, I couldn't keep a straight face after you've mentioned that the Infantry will just "accept" the bullet in the chest, haha! I like the little bit of humor inserted here and there throughout your video, keeps things interesting. Thanks John :)
chamberlainpi 2 days ago
you sound exactly like seth rogen! :)
utsavized 4 months ago
@MrKestess
I think accept takes an IVisitor, the interface that both SeigeBullet and StatsVisitor implement. I think this was automatically changed when he extracted IVisitor. IDE witchcraft.
JoolsCaesar 9 months ago
Very nice Video. For me it was very difficult to understand the visitor pattern. But now everything seems to be clear.
Hasch2k08 10 months ago
Thank you. Except for one point, that was really clear and I'm sure I just missed something. At 10:33 { InfantryDude.accept(StatsVisitor); } I can't find where the accept call is defined to receive a StatsVisitor. It seemed to have accept(ed) a SeigeBullet. What did I miss?
Thanks again.
MrKestess 10 months ago
Thanks man! I like the hands on, game centric, explanation.
Thumbs up!
basilmiro 1 year ago