void NewEnemy(object sender, SurfaceTower.Model.EventArguments.EnemyArgs e) { e.Enemy.EnemyReached += new EventHandler(Enemy_EnemyReached); }
void OnUpdate(object sender, SurfaceTower.Model.EventArguments.UpdateArgs e) { audioEngine.Update(); }
void Model_DeadEnemy(object sender, SurfaceTower.Model.EventArguments.EnemyArgs e) { addExplosion(e.Enemy.Location, player_cols[e.Enemy.Player+1]); }
void t_NewBullet(object sender, SurfaceTower.Model.EventArguments.BulletArgs e) { // emitters.Add(new FireBulletEmitter(e.Bullet, tex, 30)); }
void Model_AddTurret(object sender, SurfaceTower.Model.EventArguments.TurretArgs e) { e.Turret.NewBullet+=new EventHandler<SurfaceTower.Model.EventArguments.BulletArgs>(t_NewBullet); }
void OnAddPlayer(object sender, SurfaceTower.Model.EventArguments.PlayerArgs e) { if (!firstPlayerHasJoined) { if(introCue.IsPlaying) introCue.Stop(AudioStopOptions.AsAuthored); soundBank.PlayCue("Crowdcheer"); firstPlayerHasJoined = true; } }
void OnRemovePlayer(object sender, SurfaceTower.Model.EventArguments.PlayerArgs e) { //soundBank.PlayCue("Aww"); }