示例#1
0
        public bool HasGlobalVision(Vector2 coords)
        {
            Vector2            vector = TranslateToNavGrid(coords);
            NavigationGridCell cell   = GetCell((short)vector.X, (short)vector.Y);

            return(cell != null && cell.HasFlag(NavigationGridCellFlags.HAS_GLOBAL_VISION));
        }
示例#2
0
        public bool IsSeeThrough(Vector2 coords)
        {
            Vector2 vector = TranslateToNavGrid(new Vector2 {
                X = coords.X, Y = coords.Y
            });
            NavigationGridCell cell = GetCell((short)vector.X, (short)vector.Y);

            return(cell != null && cell.HasFlag(NavigationGridCellFlags.SEE_THROUGH));
        }
示例#3
0
        public bool IsBrush(Vector2 coords)
        {
            Vector2 vector = TranslateToNavGrid(new Vector2 {
                X = coords.X, Y = coords.Y
            });
            NavigationGridCell cell = GetCell((short)vector.X, (short)vector.Y);

            return(cell != null && cell.HasFlag(NavigationGridCellFlags.HAS_GRASS));
        }
示例#4
0
        public bool IsWalkable(Vector2 coords)
        {
            Vector2 vector = TranslateToNavGrid(new Vector2 {
                X = coords.X, Y = coords.Y
            });
            NavigationGridCell cell = GetCell((short)vector.X, (short)vector.Y);

            return(cell != null && !cell.HasFlag(NavigationGridCellFlags.NOT_PASSABLE));
        }