Bowls
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Jack Class Reference

Class that represents a Jack. More...

#include <Jack.h>

Inheritance diagram for Jack:
Inheritance graph
Collaboration diagram for Jack:
Collaboration graph

Public Member Functions

 Jack (cgg::Mat43)
 
 Jack (cgg::Mat43, cgg::Vec3, float)
 
 Jack (cgg::Vec3)
 
 Jack (cgg::Vec3, cgg::Vec3, float)
 
void render (gl::Primitives *)
 
- Public Member Functions inherited from Ball
 Ball (cgg::Mat43)
 
 Ball (cgg::Mat43, cgg::Vec3, float)
 
 Ball (cgg::Vec3)
 
 Ball (cgg::Vec3, cgg::Vec3, float)
 
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)
 

Additional Inherited Members

- Protected Attributes inherited from Ball
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...
 

Detailed Description

Class that represents a Jack.

Class that contains a Jack and its interactions with the game.

Definition at line 13 of file Jack.h.

Constructor & Destructor Documentation

Jack::Jack ( cgg::Mat43  )

Create a Jack object

Creates a Jack object using the passed in transform. Colour and radius are set to internal defaults.

Parameters
cgg::Mat43The transformation matrix
Jack::Jack ( cgg::Mat43  ,
cgg::Vec3  ,
float   
)

Create a Jack object

Creates a Jack object using the passed in transform, colour and radius.

Parameters
cgg::Mat43- The transformation matrix
cgg::Vec3- Contains the colour r,g,b values
float- Float value containing the radius of the sphere
Jack::Jack ( cgg::Vec3  )

Create a Jack object

Creates a Jack object using the passed in transform. Colour and radius are set to internal defaults.

Parameters
cgg::Vec3- Position
Jack::Jack ( cgg::Vec3  ,
cgg::Vec3  ,
float   
)

Create a Jack object

Creates a Jack object using the passed in transform, colour and radius.

Parameters
cgg::Vec3- Position
cgg::Vec3- Contains the colour r,g,b values
float- Float value containing the radius of the sphere

Member Function Documentation

void Jack::render ( gl::Primitives *  )
virtual

Renders a sphere

Creates a sphere using the objects internal values and passes it into primitiveList.

Parameters
gl::Primitives*- Pointer to a list of primitives

Reimplemented from Ball.


The documentation for this class was generated from the following file: