public override void OnStart() { for ( int i = 0; i < m_Controller.TeamInfo.Length; ++i ) { BRTeamInfo teamInfo = m_Controller.TeamInfo[i]; teamInfo.Game = this; teamInfo.Reset(); } for ( int i = 0; i < m_Context.Participants.Count; ++i ) ApplyHues( m_Context.Participants[i] as Participant, m_Controller.TeamInfo[i % m_Controller.TeamInfo.Length].Color ); if ( m_FinishTimer != null ) m_FinishTimer.Stop(); m_Bomb = new BRBomb( this ); ReturnBomb(); m_FinishTimer = Timer.DelayCall( m_Controller.Duration, new TimerCallback( Finish_Callback ) ); }
public BombTarget( BRBomb bomb, Mobile from ) : base(10, true, TargetFlags.None) { CheckLOS = false; m_Bomb = bomb; m_Mob = from; m_Mob.SendMessage( 0x26, "Where do you want to throw it?" ); }
public EffectTimer( BRBomb bomb ) : base(TimeSpan.Zero, TimeSpan.FromSeconds( 1.0 )) { m_Bomb = bomb; m_Count = 0; Priority = TimerPriority.FiftyMS; }