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); }
public void ShortHeight() { playerHeight = PlayerHeight.Short; }
//Player Height Functions public void TallHeight() { playerHeight = PlayerHeight.Tall; }