예제 #1
0
        protected Rectangle AtBottomOfStairs(WallMap wallMap)
        {
            Rectangle futureBoundingBox = new Rectangle((int)((BoundingBox.X)),
                                                        (int)((BoundingBox.Y + 20)),
                                                        (int)(BoundingBox.Width),
                                                        (int)(BoundingBox.Height - 20));


            return(wallMap.StairCollision(futureBoundingBox));
        }
예제 #2
0
        protected Rectangle AtTopOfStairs(WallMap wallMap)
        {
            Rectangle futureBoundingBox = new Rectangle((int)((BoundingBox.X)),
                                                        (int)((BoundingBox.Y) + BoundingBox.Height + 1),
                                                        (int)(BoundingBox.Width),
                                                        (int)(2));


            return(wallMap.StairCollision(futureBoundingBox));
        }