Level H Engine
Public Member Functions | Private Attributes | List of all members
AimBallComponent Class Reference

A class that handles the aim ball component. More...

#include <AimBallComponent.h>

Inheritance diagram for AimBallComponent:
Inheritance graph
Collaboration diagram for AimBallComponent:
Collaboration graph

Public Member Functions

virtual ~AimBallComponent ()
 A virtual destructor. More...
 
virtual void onAwake ()
 A virtual function for the componets awake. More...
 
virtual void onDestroy ()
 A virtual function for the componets destroy. More...
 
void setVelocities (Vec3 inVel)
 
void update ()
 
void setResetPos (Vec3 inPos)
 
void resetBall ()
 
void applyGravity ()
 
void setUse (bool use)
 
- Public Member Functions inherited from Component
virtual ~Component ()
 A virtual destructor. More...
 
std::weak_ptr< GameObjectgetGameObject ()
 A function to get the game object linked with the component. More...
 
virtual void onUpdate ()
 A virtual function for the componets update. More...
 
virtual void onRender ()
 A virtual function for the componets render. More...
 
void setDestroyed (bool inDestroyed)
 A function to set the componets destroyed boolean. More...
 
bool getDestroyed ()
 A function to get the componets destroyed boolean. More...
 
std::string getID ()
 A function to set the components type ID. More...
 

Private Attributes

Vec3 velocities
 The velocites of the ball. More...
 
Vec3 resetPos
 
bool inUse
 

Additional Inherited Members

- Protected Attributes inherited from Component
std::string id
 The ID of the component type. More...
 

Detailed Description

A class that handles the aim ball component.

Constructor & Destructor Documentation

◆ ~AimBallComponent()

AimBallComponent::~AimBallComponent ( )
virtual

A virtual destructor.

Member Function Documentation

◆ applyGravity()

void AimBallComponent::applyGravity ( )
Here is the caller graph for this function:

◆ onAwake()

void AimBallComponent::onAwake ( )
virtual

A virtual function for the componets awake.

Reimplemented from Component.

◆ onDestroy()

void AimBallComponent::onDestroy ( )
virtual

A virtual function for the componets destroy.

Reimplemented from Component.

◆ resetBall()

void AimBallComponent::resetBall ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setResetPos()

void AimBallComponent::setResetPos ( Vec3  inPos)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUse()

void AimBallComponent::setUse ( bool  use)
inline
Here is the caller graph for this function:

◆ setVelocities()

void AimBallComponent::setVelocities ( Vec3  inVel)
Here is the caller graph for this function:

◆ update()

void AimBallComponent::update ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ inUse

bool AimBallComponent::inUse
private

◆ resetPos

Vec3 AimBallComponent::resetPos
private

◆ velocities

Vec3 AimBallComponent::velocities
private

The velocites of the ball.


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