From a524cfdd2756ac945040ca9bed576fb2f68f8c9f Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 16 May 2010 21:44:32 +0200 Subject: Imported project. --- bullet.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 bullet.cpp (limited to 'bullet.cpp') 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() { +} -- cgit v1.2.3