summaryrefslogtreecommitdiff
path: root/bullet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bullet.cpp')
-rw-r--r--bullet.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/bullet.cpp b/bullet.cpp
new file mode 100644
index 0000000..b7df9fb
--- /dev/null
+++ b/bullet.cpp
@@ -0,0 +1,26 @@
+#include "bullet.h"
+
+Bullet::Bullet() {
+}
+
+Bullet::Bullet(const Vector3& pos, const Vector3& direction, float radius) {
+ this->pos = pos;
+ this->direction = direction;
+ this->radius = radius;
+}
+
+Bullet::Bullet(const Bullet& b) {
+ pos = b.pos;
+ direction = b.direction;
+ radius = b.radius;
+}
+
+Bullet& Bullet::operator=(const Bullet& b) {
+ pos = b.pos;
+ direction = b.direction;
+ radius = b.radius;
+ return *this;
+}
+
+Bullet::~Bullet() {
+}