Beispiel #1
0
        public void RemoveRecieveBattleGridDelegate(AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe)
        {
            switch (mode)
            {
            case AgentDelegateMode.ThreadSafe:
                _recieveBattleGridDelegate_TS = null;
                break;

            case AgentDelegateMode.NotThreadSafe:
                _recieveBattleGridDelegate_NTS = null;
                break;
            }
        }
Beispiel #2
0
        //recieve delegates
        public void SetRecievePathDelegate(Action <Path> pathDelegate, AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe)
        {
            switch (mode)
            {
            case AgentDelegateMode.ThreadSafe:
                _recievePathDelegate_TS = pathDelegate;
                break;

            case AgentDelegateMode.NotThreadSafe:
                _recievePathDelegate_NTS = pathDelegate;
                break;
            }
        }
Beispiel #3
0
        public void RemoveRecieveCoverDelegate(AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe)
        {
            switch (mode)
            {
            case AgentDelegateMode.ThreadSafe:
                _recieveCoverPointDelegate_TS = null;
                _recieveCoverPointUsed        = true;
                break;

            case AgentDelegateMode.NotThreadSafe:
                _recieveCoverPointDelegate_NTS = null;
                break;
            }
        }
Beispiel #4
0
        public void SetRecieveCoverDelegate(Action <IEnumerable <NodeCoverPoint> > coverDelegate, AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe)
        {
            switch (mode)
            {
            case AgentDelegateMode.ThreadSafe:
                _recieveCoverPointDelegate_TS = coverDelegate;
                break;

            case AgentDelegateMode.NotThreadSafe:
                _recieveCoverPointDelegate_NTS = coverDelegate;
                break;
            }
        }
Beispiel #5
0
        public void SetRecieveBattleGridDelegate(Action <IEnumerable <BattleGridPoint> > gridDelegate, AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe)
        {
            switch (mode)
            {
            case AgentDelegateMode.ThreadSafe:
                _recieveBattleGridDelegate_TS = gridDelegate;
                _recieveBattleGridUsed        = true;
                break;

            case AgentDelegateMode.NotThreadSafe:
                _recieveBattleGridDelegate_NTS = gridDelegate;
                break;
            }
        }