12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- ** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
- **
- ** File: CreateWaypointAction.cpp
- **
- ** Author:
- **
- ** Description:
- ** Implementation of the training library "CreateWaypointAction" interface.
- **
- ** History:
- */
- #include "pch.h"
- #include "CreateWaypointAction.h"
- namespace Training
- {
- //------------------------------------------------------------------------------
- // class methods
- //------------------------------------------------------------------------------
- /* void */ CreateWaypointAction::CreateWaypointAction (BuoyID buoyID, const Vector& position, SectorID sectorID) :
- CreateObjectAction (OT_buoy, &m_buoyData, sizeof (m_buoyData)),
- m_buoyID (buoyID),
- m_position (position),
- m_sectorID (sectorID)
- {
- }
- //------------------------------------------------------------------------------
- /* void */ CreateWaypointAction::~CreateWaypointAction (void)
- {
- }
- //------------------------------------------------------------------------------
- void CreateWaypointAction::Execute (void)
- {
- ImissionIGC* pMission = trekClient.GetCore();
- // create the waypoint object
- m_buoyData.position = m_position;
- m_buoyData.type = c_buoyWaypoint;
- m_buoyData.clusterID = m_sectorID;
- m_buoyData.buoyID = m_buoyID;
- CreateObjectAction::Execute ();
- }
- //------------------------------------------------------------------------------
- }
|