// AtlSpaceship.cpp : Implementation of CAtlSpaceship
#include "stdafx.h"
#include "Spaceshipsvr.h"
#include "AtlSpaceship.h"

/////////////////////////////////////////////////////////////////////////////
// CAtlSpaceship

STDMETHODIMP CAtlSpaceship::CallStarFleet(float fStarDate,
										  BSTR *pbstrRecipient)
{
	// TODO: Add your implementation code here
	ATLTRACE("Calling Star fleet");
	return S_OK;
}

STDMETHODIMP CAtlSpaceship::Fly()
{
	// TODO: Add your implementation code here
	// not doing too much here-- we're really just interested
	// in the structure
    OutputDebugString("Entering CSpaceship::XMotion::Fly\n");
    ATLTRACE("m_nPosition = %d\n", m_nPosition);
    ATLTRACE("m_nAcceleration = %d\n", m_nAcceleration);
	return S_OK;
}

STDMETHODIMP CAtlSpaceship::GetPosition(long *nPosition)
{
	// TODO: Add your implementation code here
	// not doing too much here-- we're really just interested
	// in the structure
    ATLTRACE("CATLSpaceShip::GetPosition\n");
    ATLTRACE("m_nPosition = %d\n", m_nPosition);
    ATLTRACE("m_nAcceleration = %d\n", m_nAcceleration);
	*nPosition = m_nPosition;
	return S_OK;
}

STDMETHODIMP CAtlSpaceship::Display()
{
	// TODO: Add your implementation code here
	// not doing too much here-- we're really just interested
	// in the structure
    ATLTRACE("CSpaceship::XVisual::Display\n");
    ATLTRACE("m_nPosition = %d\n", m_nPosition);
    ATLTRACE("m_nColor = %d\n", m_nColor);
	return S_OK;
}
