Whistle: Replace const declarations with typedefs

This commit is contained in:
Ariel Elkin
2014-04-06 08:50:31 +01:00
parent 4e90d3ffd2
commit 3d3ab8b86a

View File

@@ -26,12 +26,15 @@ const int CAN_RADIUS = 100;
const int PEA_RADIUS = 30; const int PEA_RADIUS = 30;
const int BUMP_RADIUS = 5; const int BUMP_RADIUS = 5;
const StkFloat NORM_CAN_LOSS = 0.97; typedef StkFloat WhistleCanLoss;
const StkFloat SLOW_CAN_LOSS = 0.90; WhistleCanLoss NORM_CAN_LOSS = 0.97;
WhistleCanLoss SLOW_CAN_LOSS = 0.90;
const StkFloat GRAVITY = 20.0; const StkFloat GRAVITY = 20.0;
const StkFloat NORM_TICK_SIZE = 0.004; typedef StkFloat WhistleTickSize;
const StkFloat SLOW_TICK_SIZE = 0.0001; WhistleTickSize NORM_TICK_SIZE = 0.004;
WhistleTickSize SLOW_TICK_SIZE = 0.0001;
const StkFloat ENV_RATE = 0.001; const StkFloat ENV_RATE = 0.001;