예제 #1
0
파일: LosCheckMgr.cs 프로젝트: mynew4/DAoC
		/// <summary>
		/// Check LoS and wait for a reply before returning
		/// </summary>
		/// <param name="player">Client used to make the LoS check</param>
		/// <param name="source">GameObject from witch LoS check start</param>
		/// <param name="target">GameObject to check LoS to</param>
		/// <param name="notifier">GameObject to Notify when Check is made</param>
		/// <param name="cached">Use a cached result</param>
		/// <param name="timeout">Cache Timeout, 0 = default</param>
		public void LosCheck(GamePlayer player, GameObject source, GameObject target, LosMgrResponse notifier, bool cached = true , int timeout = 0)
		{
			LosCheck(player, source, target, new LosMgrResponseHandler(notifier), cached, timeout);
		}
예제 #2
0
파일: LosCheckMgr.cs 프로젝트: mynew4/DAoC
		/// <summary>
		/// LoscheckVincinity can be used when source player isn't available to check Los
		/// </summary>
		/// <param name="source">GameObject from witch LoS check start</param>
		/// <param name="target">GameObject to check LoS to</param>
		/// <param name="notifier">GameObject to Notify when Check is made</param>
		/// <param name="cached">Use a cached result</param>
		/// <param name="timeout">Cache Timeout, 0 = default</param>
		public void LosCheckVincinity(GameObject source, GameObject target, LosMgrResponse notifier, bool cached = true, int timeout = 0) 
		{
			LosCheckVincinity(source, target, new LosMgrResponseHandler(notifier), true, 0);
		}
예제 #3
0
파일: LosCheckMgr.cs 프로젝트: mynew4/DAoC
		public LosMgrResponseHandler(LosMgrResponse deleg) {
			m_delegate = deleg;
		}