// Chessman.cpp #include "stdafx.h" #include "Chessman.h" Chessman ::Chessman (const int weightValueTowardsTopLeft, const int weightValueTowardsUp, const int weightValueTowardsTopRight) { m_weightValue[Direction_TopLeft] = weightValueTowardsTopLeft ; m_weightValue[Direction_Up] = weightValueTowardsUp ; m_weightValue[Direction_TopRight] = weightValueTowardsTopRight ; }