public float GetSpeed(Pacmac pacmac) { float speed = pacmac.GetSpeedBase(); switch (_type) { case PacmacStateType.SUPER: speed *= 2; break; case PacmacStateType.NORMAL: case PacmacStateType.POWER: default: break; } return(speed); }