summaryrefslogtreecommitdiffstats
path: root/game/code/meta/locator.cpp
diff options
context:
space:
mode:
authorSvxy <aidan61605@gmail.com>2023-05-31 23:31:32 +0200
committerSvxy <aidan61605@gmail.com>2023-05-31 23:31:32 +0200
commiteb4b3404aa00220d659e532151dab13d642c17a3 (patch)
tree7e1107c4995489a26c4007e41b53ea8d00ab2134 /game/code/meta/locator.cpp
downloadThe-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.gz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.bz2
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.lz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.xz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.zst
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.zip
Diffstat (limited to 'game/code/meta/locator.cpp')
-rw-r--r--game/code/meta/locator.cpp109
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
+//
+//******************************************************************************