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

Class that represents an Entity with Collision. More...

#include <CollisionEntity.h>

Inheritance diagram for CollisionEntity:
Inheritance graph
Collaboration diagram for CollisionEntity:
Collaboration graph

Public Member Functions

 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 ()
 
virtual void render (gl::Primitives *)=0
 
void updateColour (cgg::Vec3)
 

Private Attributes

cgg::Vec3 velocities
 cgg::Vec3 containing the velocities of the Entity. More...
 

Additional Inherited Members

- 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 an Entity with Collision.

Class that contains an Entity with Collision, no class above this should have physics code.

Todo:
Make this a proper pure virtual class (if possible)

Definition at line 16 of file CollisionEntity.h.

Constructor & Destructor Documentation

CollisionEntity::CollisionEntity ( cgg::Mat43  )

PURE VIRTUAL Creates an Entity with Collision

PURE VIRTUAL Don't create this object

Parameters
cgg::Mat43- The transformation matrix
CollisionEntity::CollisionEntity ( cgg::Mat43  ,
cgg::Vec3   
)

PURE VIRTUAL Creates an Entity with Collision

PURE VIRTUAL Don't create this object

Parameters
cgg::Mat43- The transformation matrix
cgg::Vec3- Contains the colour r,g,b values
CollisionEntity::CollisionEntity ( cgg::Vec3  )

PURE VIRTUAL Creates an Entity with Collision

PURE VIRTUAL Don't create this object

Parameters
cgg::Vec3- Position
CollisionEntity::CollisionEntity ( cgg::Vec3  ,
cgg::Vec3   
)

PURE VIRTUAL Creates an Entity with Collision

PURE VIRTUAL Don't create this object

Parameters
cgg::Vec3- Position
cgg::Vec3- Contains the colour r,g,b values

Member Function Documentation

float CollisionEntity::getXVelocity ( )

Gets the velocity

Gets the x velocity

Returns
float x velocity.
float CollisionEntity::getYVelocity ( )

Gets the velocity

Gets the y velocity

Returns
float y velocity.
float CollisionEntity::getZVelocity ( )

Gets the velocity

Gets the z velocity

Returns
float z velocity.
void CollisionEntity::updateXVelocity ( float  )

Change the velocity to the inputed value

The inputed floats are the new values of the x velocity

Parameters
floatx velocity.
void CollisionEntity::updateYVelocity ( float  )

Change the velocity to the inputed value

The inputed floats are the new values of the y velocity

Parameters
floaty velocity.
void CollisionEntity::updateZVelocity ( float  )

Change the velocity to the inputed value

The inputed floats are the new values of the z velocity

Parameters
floatz velocity.

Member Data Documentation

cgg::Vec3 CollisionEntity::velocities
private

cgg::Vec3 containing the velocities of the Entity.

Definition at line 114 of file CollisionEntity.h.


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