Esempio n. 1
0
        public bool DoesTileObstructProjectiles(IntVector2 tilePos)
        {
            List <int> behaviors = GetTileBehaviors(tilePos);
            bool       result    = tiles[tilePos.X, tilePos.Y].ObstructsProjectiles();

            foreach (int id in behaviors)
            {
                TileBehavior b = _scene.GetGameObjectPool().GetTileBehavior(id);
                result = (result || b.GetObstructsProjectiles());
            }
            return(result);
        }