Bowls
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Ball.h
Go to the documentation of this file.
1 #pragma once
2 #ifndef BALL_H
3 #define BALL_H
4 
5 #include <cgg/cgg.h>
6 #include "gl/Primitives.h"
7 #include "CollisionEntity.h"
8 
14 class Ball : public CollisionEntity
15 {
16 public:
17 
25  Ball(cgg::Mat43);
26 
36  Ball(cgg::Mat43, cgg::Vec3, float);
37 
45  Ball(cgg::Vec3);
46 
56  Ball(cgg::Vec3, cgg::Vec3, float);
57 
65  void render(gl::Primitives*);
66 
72  float getRadius();
73 
79  float getThrow();
80 
81 protected:
82 
84  float radius;
85 
88 };
89 
90 #endif
Ball(cgg::Mat43)
float maxThrowStrength
the maximum the ball can be thrown
Definition: Ball.h:87
float getRadius()
Class that represents an Entity with Collision.
Class that represents a Ball.
Definition: Ball.h:14
float getThrow()
void render(gl::Primitives *)
float radius
Contains the radius of the sphere.
Definition: Ball.h:84