I had some troubles in my game-architecture. The question was - how to make
Enemy objects,
Bullet objects and
Player object interact one with another without implementing tons of singletones?
I decided to look up for decision of this problem in SFML development book. I read 7 chapters of this book, paid attention to every line of it, but i still can't find solution: how to make enemies objects
know where player is located to move forward to it? Cuz i was a bit disappointed, when i realized that flights in that example game were moving just by patterns and made an illusion of AI.
Should i make methods like
void Enemy::move(Player& player, float dt);
? I mean, using references to other classes. Doesn't it ruin OO-style?
Or should I just use those singletones?
Sorry for such questions, but game-architecture brings lots of troubles for people without experience in it