Пример #1
0
        public bool IsDrawn(int renderingHeight)
        {
            PlayerHeight pHeight = (PlayerHeight)renderingHeight;

            if (!ghostRecordedYet)
            {
                return(false);
            }

            if (ghostCurrentFrame <= 2)
            {
                return(false);
            }

            if ((frameData[ghostCurrentFrame - 1].positionZ >= Globals.g_world.game.playerHeightMin[renderingHeight]) &&
                (frameData[ghostCurrentFrame - 1].positionZ < Globals.g_world.game.playerHeightMax[renderingHeight]))
            {
                if ((Globals.g_world.game).IsOnScreenNewP1(ghostScreenPos, 50.0f))
                {
                    return(true);
                }
            }

            return(false);
        }
Пример #2
0
 public void ShortHeight() { playerHeight = PlayerHeight.Short; }
Пример #3
0
 //Player Height Functions
 public void TallHeight() { playerHeight = PlayerHeight.Tall; }