Скачиваний:
6
Добавлен:
01.05.2014
Размер:
1.24 Кб
Скачать
#include "stdafx.h"
#include "CPointEntity.h"
#include <iostream>

/********************************************************************************/

CPointEntity::CPointEntity( const int iX, const int iY )
{
	setX( iX );
	setY( iY );
}

/********************************************************************************/

CPointEntity::~CPointEntity()
{
}

/********************************************************************************/

int CPointEntity::getX() const
{
	return mX;
}

/********************************************************************************/

int CPointEntity::getY() const
{
	return mY;
}

/********************************************************************************/

void CPointEntity::setX( const int iX )
{
	mX = iX;
}

/********************************************************************************/

void CPointEntity::setY( const int iY )
{
	mY = iY;
}

/********************************************************************************/
void CPointEntity::move(int dx,int dy)
{
	mX=mX+dx;
	mY=mY+dy;
}

void CPointEntity::Printfig(std::ostream& os)
{
	os	<< "Point:"<<std::endl;
	os	<< " X=" <<mX<<std::endl;
	os	<< " Y=" <<mY<<std::endl;
}
Соседние файлы в папке part32