www.gusucode.com > VC++开发的魔方游戏的源程序-源码程序 > VC++开发的魔方游戏的源程序-源码程序\code\WordBase.cpp
//Download by http://www.NewXing.com // WordBase.cpp: implementation of the CWordBase class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MxCubes.h" #include "WordBase.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CWordBase::CWordBase() { } CWordBase::~CWordBase() { } void CWordBase::GetTurn(short *ccc) { for(int n=0; n<16; n++) { ccc[n] = CCC_TURN[n]; } } void CWordBase::GetUp(short *ccc) { for(int n=0; n<16; n++) { ccc[n] = CCC_UP[n]; } } void CWordBase::GetDown(short *ccc) { for(int n=0; n<16; n++) { ccc[n] = CCC_DOWN[n]; } } void CWordBase::GetLeft(short *ccc) { for(int n=0; n<16; n++) { ccc[n] = CCC_LEFT[n]; } } void CWordBase::GetRight(short *ccc) { for(int n=0; n<16; n++) { ccc[n] = CCC_RIGHT[n]; } } void CWordBase::GetFront(short *ccc) { for(int n=0; n<16; n++) { ccc[n] = CCC_FRONT[n]; } } void CWordBase::GetBack(short *ccc) { for(int n=0; n<16; n++) { ccc[n] = CCC_BACK[n]; } }