예제 #1
0
        protected virtual void OnBeliefChanged(BeliefEventArgs e)
        {
            EventHandler <BeliefEventArgs> handler = BeliefChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
        protected virtual void OnBeliefChanged(BeliefEventArgs e)
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            EventHandler <BeliefEventArgs> handler = BeliefChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #3
0
 public void AgentBeliefChanged(object sender, BeliefEventArgs e)
 {
     //Console.WriteLine("belief " + e.Belief);
     Invalidate();
 }
예제 #4
0
 private void CurrentThought_BeliefChanged(object sender, BeliefEventArgs e)
 {
     OnBeliefChanged(e);
 }
예제 #5
0
 private void CurrentThought_BeliefChanged(object sender, BeliefEventArgs e)
 {
     OnBeliefChanged(e);
 }
예제 #6
0
        protected virtual void OnBeliefChanged(BeliefEventArgs e)
        {
            EventHandler<BeliefEventArgs> handler = BeliefChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #7
0
        protected virtual void OnBeliefChanged(BeliefEventArgs e)
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            EventHandler<BeliefEventArgs> handler = BeliefChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }