Ejemplo n.º 1
0
        public bool CollidesWithTile(IPhysicalEntity physicalEntity)
        {
            List <Vector2I> coverTilesCoordinates = physicalEntity.CoverTiles();
            bool            colliding             = !coverTilesCoordinates.TrueForAll(x => !m_atlas.ContainsCollidingTile(x));

            return(colliding);
        }
Ejemplo n.º 2
0
        public bool CollidesWithTile(IPhysicalEntity physicalEntity)
        {
            if (!physicalEntity.ElasticCollision && !physicalEntity.InelasticCollision)
            {
                return(false);
            }
            List <Vector2I> coverTilesCoordinates = physicalEntity.CoverTiles();
            bool            colliding             = !coverTilesCoordinates.TrueForAll(x => !m_atlas.ContainsCollidingTile(x));

            return(colliding);
        }
Ejemplo n.º 3
0
 public bool CollidesWithTile(IPhysicalEntity physicalEntity)
 {
     List<Vector2I> coverTilesCoordinates = physicalEntity.CoverTiles();
     bool colliding = !coverTilesCoordinates.TrueForAll(x => !m_atlas.ContainsCollidingTile(x));
     return colliding;
 }