diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-16 21:44:32 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-16 21:44:32 +0200 |
commit | a524cfdd2756ac945040ca9bed576fb2f68f8c9f (patch) | |
tree | 000874591e87ae5ce7f162214337b49bc1ba0e0b /bullet.cpp |
Imported project.
Diffstat (limited to 'bullet.cpp')
-rw-r--r-- | bullet.cpp | 26 |
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() { +} |