现在的位置: 首页 > 综合 > 正文

棋子类实现文件C++

2013年10月03日 ⁄ 综合 ⁄ 共 341字 ⁄ 字号 评论关闭
 
//	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 ;
}

抱歉!评论已关闭.