diff options
Diffstat (limited to 'game/code/meta/locator.cpp')
-rw-r--r-- | game/code/meta/locator.cpp | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/game/code/meta/locator.cpp b/game/code/meta/locator.cpp new file mode 100644 index 0000000..5f696e5 --- /dev/null +++ b/game/code/meta/locator.cpp @@ -0,0 +1,109 @@ +//============================================================================= +// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved. +// +// File: +// +// Description: Implement Locator +// +// History: 04/04/2002 + Created -- Cary Brisebois +// +//============================================================================= + +//======================================== +// System Includes +//======================================== +// Foundation Tech +#include <raddebug.hpp> + +//======================================== +// Project Includes +//======================================== +#ifndef WORLD_BUILDER +#include <meta/Locator.h> +#else +#include "Locator.h" +#endif + + + +//****************************************************************************** +// +// Global Data, Local Data, Local Classes +// +//****************************************************************************** + +//****************************************************************************** +// +// Public Member Functions +// +//****************************************************************************** + +//============================================================================== +// Locator::Locator +//============================================================================== +// Description: Constructor. +// +// Parameters: None. +// +// Return: N/A. +// +//============================================================================== +Locator::Locator() : + mID( ~0 ), + mData( 0 ), + mFlags( 0 ), + mLocation( rmt::Vector( 0.0f, 0.0f, 0.0f ) ) +{ + SetFlag( ACTIVE, true ); +} + +//============================================================================== +// Locator::~Locator +//============================================================================== +// Description: Destructor. +// +// Parameters: None. +// +// Return: N/A. +// +//============================================================================== +Locator::~Locator() +{ +} + +//============================================================================= +// Locator::GetPosition +//============================================================================= +// Description: Comment +// +// Parameters: ( rmt::Vector* currentLoc ) +// +// Return: void +// +//============================================================================= +void Locator::GetPosition( rmt::Vector* currentLoc ) +{ + GetLocation( currentLoc ); +} + +//============================================================================= +// Locator::GetHeading +//============================================================================= +// Description: Comment +// +// Parameters: ( rmt::Vector* heading ) +// +// Return: void +// +//============================================================================= +void Locator::GetHeading( rmt::Vector* heading ) +{ + //Locators have no heading. + heading->Set( 0.0f, 0.0f, 0.0f ); +} + +//****************************************************************************** +// +// Private Member Functions +// +//****************************************************************************** |