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

Class that represents a Bowl. More...

#include <Bowl.h>

Inheritance diagram for Bowl:
Inheritance graph
Collaboration diagram for Bowl:
Collaboration graph

Public Member Functions

 Bowl (cgg::Mat43)
 
 Bowl (cgg::Mat43, cgg::Vec3, float)
 
 Bowl (cgg::Vec3)
 
 Bowl (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 Bowl.

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

Definition at line 13 of file Bowl.h.

Constructor & Destructor Documentation

Bowl::Bowl ( cgg::Mat43  )

Create a Bowl object

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

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

Create a Bowl object

Creates a Bowl 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
Bowl::Bowl ( cgg::Vec3  )

Create a Bowl object

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

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

Create a Bowl object

Creates a Bowl 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 Bowl::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: