summaryrefslogtreecommitdiffstats
path: root/dev/a2-carsoccer/ball.h
diff options
context:
space:
mode:
authorKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
committerKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
commitcccd3186305915d92b1751dc616979d64116a4aa (patch)
tree5dd4834daef547cd45fc0b643f44a10b581de0ad /dev/a2-carsoccer/ball.h
parentAdded missing images for the A6 worksheet (diff)
downloadcsci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.gz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.bz2
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.lz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.xz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.zst
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.zip
Upload a1
Diffstat (limited to 'dev/a2-carsoccer/ball.h')
-rw-r--r--dev/a2-carsoccer/ball.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/dev/a2-carsoccer/ball.h b/dev/a2-carsoccer/ball.h
deleted file mode 100644
index 65a96a4..0000000
--- a/dev/a2-carsoccer/ball.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/** CSci-4611 Assignment 2: Car Soccer
- */
-
-#ifndef BALL_H_
-#define BALL_H_
-
-#include <mingfx.h>
-
-/// Small data structure for a ball
-class Ball {
-public:
-
- /// The constructor sets the radius and calls Reset() to start the ball at
- /// the center of the field
- Ball() : radius_(2.6f) {
- Reset();
- }
-
- /// Nothing special needed in the constructor
- virtual ~Ball() {}
-
-
- void Reset() {
- position_ = Point3(0, radius_, 0);
- }
-
- float radius() { return radius_; }
-
- Point3 position() { return position_; }
- void set_position(const Point3 &p) { position_ = p; }
-
-
-private:
- // You will probably need to store some additional data here, e.g., velocity
-
- Point3 position_;
- float radius_;
-};
-
-#endif