mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Whistle: Replace const declarations with typedefs
This commit is contained in:
@@ -26,12 +26,15 @@ const int CAN_RADIUS = 100;
|
||||
const int PEA_RADIUS = 30;
|
||||
const int BUMP_RADIUS = 5;
|
||||
|
||||
const StkFloat NORM_CAN_LOSS = 0.97;
|
||||
const StkFloat SLOW_CAN_LOSS = 0.90;
|
||||
typedef StkFloat WhistleCanLoss;
|
||||
WhistleCanLoss NORM_CAN_LOSS = 0.97;
|
||||
WhistleCanLoss SLOW_CAN_LOSS = 0.90;
|
||||
|
||||
const StkFloat GRAVITY = 20.0;
|
||||
|
||||
const StkFloat NORM_TICK_SIZE = 0.004;
|
||||
const StkFloat SLOW_TICK_SIZE = 0.0001;
|
||||
typedef StkFloat WhistleTickSize;
|
||||
WhistleTickSize NORM_TICK_SIZE = 0.004;
|
||||
WhistleTickSize SLOW_TICK_SIZE = 0.0001;
|
||||
|
||||
const StkFloat ENV_RATE = 0.001;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user