Bowls
|
Class that represents a Ball. More...
#include <Ball.h>
Public Member Functions | |
Ball (cgg::Mat43) | |
Ball (cgg::Mat43, cgg::Vec3, float) | |
Ball (cgg::Vec3) | |
Ball (cgg::Vec3, cgg::Vec3, float) | |
void | render (gl::Primitives *) |
float | getRadius () |
float | getThrow () |
Public Member Functions inherited from CollisionEntity | |
CollisionEntity (cgg::Mat43) | |
CollisionEntity (cgg::Mat43, cgg::Vec3) | |
CollisionEntity (cgg::Vec3) | |
CollisionEntity (cgg::Vec3, cgg::Vec3) | |
void | updateXVelocity (float) |
void | updateYVelocity (float) |
void | updateZVelocity (float) |
float | getXVelocity () |
float | getYVelocity () |
float | getZVelocity () |
Public Member Functions inherited from Entity | |
Entity (cgg::Mat43) | |
Entity (cgg::Mat43, cgg::Vec3) | |
Entity (cgg::Vec3) | |
Entity (cgg::Vec3, cgg::Vec3) | |
void | changePosition (cgg::Vec3) |
void | updatePosition (cgg::Vec3) |
cgg::Vec3 | getPosition () |
void | updateColour (cgg::Vec3) |
Protected Attributes | |
float | radius |
Contains the radius of the sphere. More... | |
float | maxThrowStrength |
the maximum the ball can be thrown More... | |
Protected Attributes inherited from Entity | |
cgg::Mat43 | transform |
cgg::Mat43 containing a transform (position,rotation,scale). More... | |
cgg::Vec3 | colour |
cgg::Vec3 containing a colour's r,g,b values. More... | |
Class that represents a Ball.
Class that contains a ball and its interactions with the game.
Ball::Ball | ( | cgg::Mat43 | ) |
Ball::Ball | ( | cgg::Mat43 | , |
cgg::Vec3 | , | ||
float | |||
) |
Ball::Ball | ( | cgg::Vec3 | ) |
Ball::Ball | ( | cgg::Vec3 | , |
cgg::Vec3 | , | ||
float | |||
) |
float Ball::getRadius | ( | ) |
Returns the radius
float Ball::getThrow | ( | ) |
Returns the max throw strength
float the max throw strength
|
virtual |
|
protected |
|
protected |