-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
119 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "kz_mode_ckz.h" | ||
|
||
const char *KZClassicModeService::GetModeName() | ||
{ | ||
return "Classic"; | ||
} | ||
const char *KZClassicModeService::GetModeShortName() | ||
{ | ||
return "CKZ"; | ||
} | ||
|
||
DistanceTier KZClassicModeService::GetDistanceTier(JumpType jumpType, f32 distance) | ||
{ | ||
// No tiers given for 'Invalid' jumps. | ||
if (jumpType == JumpType_Invalid || jumpType == JumpType_FullInvalid | ||
|| jumpType == JumpType_Fall || jumpType == JumpType_Other | ||
|| distance > 500.0f) | ||
{ | ||
return DistanceTier_None; | ||
} | ||
|
||
// Get highest tier distance that the jump beats | ||
DistanceTier tier = DistanceTier_None; | ||
while (tier + 1 < DISTANCETIER_COUNT && distance >= distanceTiers[jumpType][tier]) | ||
{ | ||
tier = (DistanceTier)(tier + 1); | ||
} | ||
|
||
return tier; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
#include "kz_mode.h" | ||
|
||
class KZClassicModeService : public KZModeService | ||
{ | ||
using KZModeService::KZModeService; | ||
public: | ||
virtual const char *GetModeName() override; | ||
virtual const char *GetModeShortName() override; | ||
virtual DistanceTier GetDistanceTier(JumpType jumpType, f32 distance) override; | ||
f32 distanceTiers[JUMPTYPE_COUNT - 3][DISTANCETIER_COUNT] = | ||
{ | ||
{217.0f, 265.0f, 270.0f, 275.0f, 280.0f, 285.0f}, // LJ | ||
{217.0f, 270.0f, 275.0f, 280.0f, 285.0f, 290.0f}, // BH | ||
{217.0f, 270.0f, 275.0f, 280.0f, 285.0f, 290.0f}, // MBH | ||
{217.0f, 270.0f, 275.0f, 280.0f, 285.0f, 290.0f}, // WJ | ||
{120.0f, 180.0f, 185.0f, 190.0f, 195.0f, 200.0f}, // LAJ | ||
{217.0f, 260.0f, 265.0f, 270.0f, 275.0f, 280.0f}, // LAH | ||
{217.0f, 270.0f, 275.0f, 280.0f, 285.0f, 290.0f}, // JB | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters