All "open" tiles, and all tiles adjacent to those tiles, can be seen
Inheritance: VisionTrackerBase
Exemplo n.º 1
0
        VisionTrackerBase GetVisionTrackerInternal(EnvironmentObject env)
        {
            if (m_seeAll)
            {
                return(AdminVisionTracker.Tracker);
            }

            VisionTrackerBase tracker;

            if (m_visionTrackers.TryGetValue(env, out tracker) == false)
            {
                switch (env.VisibilityMode)
                {
                case VisibilityMode.AllVisible:
                    tracker = new AllVisibleVisionTracker(this, env);
                    break;

                case VisibilityMode.GlobalFOV:
                    tracker = new VisionTrackerGlobalFOV(this, env);
                    break;

                case VisibilityMode.LivingLOS:
                    tracker = new VisionTrackerLOS(this, env);
                    break;

                default:
                    throw new NotImplementedException();
                }

                m_visionTrackers[env] = tracker;
            }

            return(tracker);
        }
Exemplo n.º 2
0
        VisionTrackerBase GetVisionTrackerInternal(EnvironmentObject env)
        {
            if (m_seeAll)
                return AdminVisionTracker.Tracker;

            VisionTrackerBase tracker;

            if (m_visionTrackers.TryGetValue(env, out tracker) == false)
            {
                switch (env.VisibilityMode)
                {
                    case VisibilityMode.AllVisible:
                        tracker = new AllVisibleVisionTracker(this, env);
                        break;

                    case VisibilityMode.GlobalFOV:
                        tracker = new VisionTrackerGlobalFOV(this, env);
                        break;

                    case VisibilityMode.LivingLOS:
                        tracker = new VisionTrackerLOS(this, env);
                        break;

                    default:
                        throw new NotImplementedException();
                }

                m_visionTrackers[env] = tracker;
            }

            return tracker;
        }
 public MyTarget(IEnvironmentObject env, VisionTrackerGlobalFOV tracker)
 {
     m_env     = env;
     m_tracker = tracker;
 }
Exemplo n.º 4
0
 public MyTarget(IEnvironmentObject env, VisionTrackerGlobalFOV tracker)
 {
     m_env = env;
     m_tracker = tracker;
 }