summaryrefslogtreecommitdiffstats
path: root/src/collision/ColBox.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-14 21:13:32 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-15 18:51:35 +0100
commita6f5f4634c63a515196a0f650682953356cb8e18 (patch)
tree806ca1627dbab6626634822037688aff376038c2 /src/collision/ColBox.cpp
parentMerge pull request #797 from theR4K/master (diff)
downloadre3-a6f5f4634c63a515196a0f650682953356cb8e18.tar
re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.gz
re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.bz2
re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.lz
re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.xz
re3-a6f5f4634c63a515196a0f650682953356cb8e18.tar.zst
re3-a6f5f4634c63a515196a0f650682953356cb8e18.zip
Diffstat (limited to 'src/collision/ColBox.cpp')
-rw-r--r--src/collision/ColBox.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/collision/ColBox.cpp b/src/collision/ColBox.cpp
new file mode 100644
index 00000000..53cba88b
--- /dev/null
+++ b/src/collision/ColBox.cpp
@@ -0,0 +1,21 @@
+#include "common.h"
+#include "ColBox.h"
+
+void
+CColBox::Set(const CVector &min, const CVector &max, uint8 surf, uint8 piece)
+{
+ this->min = min;
+ this->max = max;
+ this->surface = surf;
+ this->piece = piece;
+}
+
+CColBox&
+CColBox::operator=(const CColBox& other)
+{
+ min = other.min;
+ max = other.max;
+ surface = other.surface;
+ piece = other.piece;
+ return *this;
+} \ No newline at end of file