public bool setGameGenerator(GameGenerator generator) { m_gameGenerator = generator; if (m_gameGenerator == generator) return true; else return false; }
static void Main(string[] args) { GameEngine game = new GameEngine(); GameGenerator generator = new GameGenerator(); SoundAnalyzer analyzer = new SoundAnalyzer(); game.setGameGenerator(generator); game.setSoundAnalyzer(analyzer); game.Run(); }