summaryrefslogtreecommitdiffstats
path: root/game/code/meta/eventlocator.h
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/eventlocator.h
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/eventlocator.h')
-rw-r--r--game/code/meta/eventlocator.h135
1 files changed, 135 insertions, 0 deletions
diff --git a/game/code/meta/eventlocator.h b/game/code/meta/eventlocator.h
new file mode 100644
index 0000000..8dd2d10
--- /dev/null
+++ b/game/code/meta/eventlocator.h
@@ -0,0 +1,135 @@
+//=============================================================================
+// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
+//
+// File: eventlocator.h
+//
+// Description: Blahblahblah
+//
+// History: 04/04/2002 + Created -- Cary Brisebois
+//
+//=============================================================================
+
+#ifndef EVENTLOCATOR_H
+#define EVENTLOCATOR_H
+
+//========================================
+// Nested Includes
+//========================================
+#include <radmath/radmath.hpp>
+
+#include <meta/triggerlocator.h>
+#include <meta/locatortypes.h>
+#include <meta/locatorevents.h>
+
+//========================================
+// Forward References
+//========================================
+
+//=============================================================================
+//
+// Synopsis: Blahblahblah
+//
+//=============================================================================
+
+class EventLocator : public TriggerLocator
+{
+public:
+ EventLocator();
+ virtual ~EventLocator();
+
+ virtual LocatorType::Type GetDataType() const;
+
+ LocatorEvent::Event GetEventType() const;
+ void SetEventType( LocatorEvent::Event eventType );
+
+ void SetMatrix( const rmt::Matrix& mat );
+ rmt::Matrix& GetMatrix();
+
+private:
+ virtual void OnTrigger( unsigned int playerID );
+
+ //Prevent wasteful constructor creation.
+ EventLocator( const EventLocator& eventlocator );
+ EventLocator& operator=( const EventLocator& eventlocator );
+
+ LocatorEvent::Event mEventType;
+
+ rmt::Matrix mMatrix;
+};
+
+//=============================================================================
+// EventLocator::GetDataType
+//=============================================================================
+// Description: Comment
+//
+// Parameters: ()
+//
+// Return: inline
+//
+//=============================================================================
+inline LocatorType::Type EventLocator::GetDataType() const
+{
+ return( LocatorType::EVENT );
+}
+
+//=============================================================================
+// EventLocator::SetEventType
+//=============================================================================
+// Description: Comment
+//
+// Parameters: ( LocatorEvent eventType )
+//
+// Return: inline
+//
+//=============================================================================
+inline void EventLocator::SetEventType( LocatorEvent::Event eventType )
+{
+ mEventType = eventType;
+}
+
+//=============================================================================
+// EventLocator::GetEventType
+//=============================================================================
+// Description: Comment
+//
+// Parameters: ()
+//
+// Return: inline
+//
+//=============================================================================
+inline LocatorEvent::Event EventLocator::GetEventType() const
+{
+ return( mEventType );
+}
+
+//=============================================================================
+// EventLocator::SetMatrix
+//=============================================================================
+// Description: Comment
+//
+// Parameters: ( const rmt::Matrix& mat )
+//
+// Return: void
+//
+//=============================================================================
+inline void EventLocator::SetMatrix( const rmt::Matrix& mat )
+{
+ mMatrix = mat;
+}
+
+//=============================================================================
+// EventLocator::GetMatrix
+//=============================================================================
+// Description: Comment
+//
+// Parameters: ()
+//
+// Return: rmt
+//
+//=============================================================================
+inline rmt::Matrix& EventLocator::GetMatrix()
+{
+ return mMatrix;
+}
+
+#endif //EVENTLOCATOR_H