예제 #1
0
파일: Map.cs 프로젝트: Commkeen/Archmage
        public bool DoesTileObstructActors(IntVector2 tilePos)
        {
            List <int> behaviors = GetTileBehaviors(tilePos);
            bool       result    = tiles[tilePos.X, tilePos.Y].ObstructsActors();

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