예제 #1
0
        /// <summary>returns true if any of the specified objects are within the specified volume. trigger volume must have been postprocessed</summary>
        public bool volume_test_objects(ITriggerVolume trigger_volume, GameObjectList object_list)
        {
            foreach (var o in object_list)
            {
                if (trigger_volume.Contains(o))
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #2
0
        /// <summary>returns true if all of the specified objects are within the specified volume. trigger volume must have been postprocessed</summary>
        public bool volume_test_objects_all(ITriggerVolume trigger_volume, GameObjectList object_list)
        {
            var allIn = true;

            foreach (var o in object_list)
            {
                if (trigger_volume.Contains(o) == false)
                {
                    allIn = false;
                }
            }

            return(allIn);
        }
예제 #3
0
 /// <summary>returns true if all of the specified objects are within the specified volume. trigger volume must have been postprocessed</summary>
 public bool volume_test_objects_all(ITriggerVolume trigger, IAiActorDefinition actor)
 {
     return(trigger.Contains(actor.Actor));
 }
예제 #4
0
 /// <summary>returns true if all of the specified objects are within the specified volume. trigger volume must have been postprocessed</summary>
 public bool volume_test_objects_all(ITriggerVolume trigger, IGameObject entity)
 {
     return(trigger.Contains(entity));
 }
예제 #5
0
 /// <summary>returns true if the specified object is within the specified volume.</summary>
 public bool volume_test_object(ITriggerVolume trigger_volume, IGameObject entity)
 {
     return(trigger_volume.Contains(entity));
 }