A*算法通用虚拟类，食用方法请参见http://www.kylen314.com/archives/108