summaryrefslogtreecommitdiff
path: root/include/velocity.h
diff options
context:
space:
mode:
authorSimponic <loganthebean222@gmail.com>2020-08-13 12:07:52 -0600
committerSimponic <loganthebean222@gmail.com>2020-08-13 12:07:52 -0600
commitd8b164e4727c887979d4da6a4011a444749862fc (patch)
tree63ae5ebfab9c1e438c0c2ccc97668e3ab809bdbd /include/velocity.h
parent40a568c50224c2832aeb13bd469d714d126118e1 (diff)
downloadasteroids-cs165-d8b164e4727c887979d4da6a4011a444749862fc.tar.gz
asteroids-cs165-d8b164e4727c887979d4da6a4011a444749862fc.zip
Better file structure, stuff is better in general
Diffstat (limited to 'include/velocity.h')
-rw-r--r--include/velocity.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/velocity.h b/include/velocity.h
new file mode 100644
index 0000000..11c41cb
--- /dev/null
+++ b/include/velocity.h
@@ -0,0 +1,23 @@
+#ifndef VELOCITY_H
+#define VELOCITY_H
+
+#include "point.h"
+
+class Velocity
+{
+ public:
+ Velocity();
+ Velocity( float dx , float dy );
+ float getDx() const;
+ float getDy() const;
+ void addDy( const float dy );
+ void addDx( const float dx );
+ void setDx( float dx );
+ void setDy( float dy );
+ Point updatePoint ( Point &point );
+ private:
+ float dx;
+ float dy;
+};
+
+#endif