You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
687 B
C++
33 lines
687 B
C++
#include "StdAfx.h"
|
|
#include "CommandMove.h"
|
|
|
|
CCommandMove::CCommandMove(void)
|
|
{
|
|
}
|
|
CCommandMove::~CCommandMove(void)
|
|
{
|
|
}
|
|
CString CCommandMove::GetStr()
|
|
{
|
|
CString str1 = "CommandMove--------[Dis x ] : <";
|
|
CString str2;
|
|
str2.Format("%lf",m_Par.MoveX);
|
|
CString str3 = "> [Dis y ] : <";
|
|
CString str4;
|
|
str4.Format("%lf",m_Par.MoveY);
|
|
CString str5 = ">";
|
|
return str1+str2+str3+str4+str5;
|
|
}
|
|
void CCommandMove::ExcuteExt()
|
|
{
|
|
m_ObjContainer.OperateObj(m_Par,false);
|
|
}
|
|
void CCommandMove::UndoExt()
|
|
{
|
|
//·´ÏòÒƶ¯
|
|
SObjOperatePar par = m_Par;
|
|
par.MoveX = par.MoveX*(-1);
|
|
par.MoveY = par.MoveY*(-1);
|
|
m_ObjContainer.OperateObj(par,false);
|
|
}
|