Heavy hammer type wave power generation method and device