All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
star::CircleColliderComponent Class Referencefinal

#include <CircleColliderComponent.h>

Inheritance diagram for star::CircleColliderComponent:
Inheritance graph
Collaboration diagram for star::CircleColliderComponent:
Collaboration graph

Public Member Functions

 CircleColliderComponent (float radius)
 CircleColliderComponent (float radius, const tstring *layers, uint8 n=1)
 ~CircleColliderComponent (void)
bool CollidesWithPoint (const vec2 &point) const
bool CollidesWithLine (const vec2 &point1, const vec2 &point2) const
void CollidesWith (const BaseColliderComponent *other) const
float GetRadius () const
void SetRadius (float radius)
float GetRealRadius () const
- Public Member Functions inherited from star::BaseColliderComponent
 BaseColliderComponent ()
 BaseColliderComponent (const tstring *layers, uint8 n=1)
virtual ~BaseColliderComponent ()
void Update (const Context &context)
void Draw ()
void SetAsTrigger (bool isTrigger)
bool IsTrigger () const
void SetAsStatic (bool isStatic)
bool IsStatic () const
- Public Member Functions inherited from star::BaseComponent
 BaseComponent (void)
 BaseComponent (Object *parent)
virtual ~BaseComponent (void)
void Initialize ()
bool IsInitialized () const
ObjectGetParent () const
void SetParent (Object *parent)
BaseSceneGetGameScene () const
TransformComponentGetTransform () const

Protected Member Functions

void InitializeColliderComponent ()
bool CircleCircleCollision (const CircleColliderComponent *collider1, const CircleColliderComponent *collider2) const

Protected Attributes

float m_Radius
- Protected Attributes inherited from star::BaseColliderComponent
bool m_bIsTrigger
bool m_bIsStatic
- Protected Attributes inherited from star::BaseComponent
bool m_bInitialized

Constructor & Destructor Documentation

star::CircleColliderComponent::CircleColliderComponent ( float  radius)
star::CircleColliderComponent::CircleColliderComponent ( float  radius,
const tstring layers,
uint8  n = 1 
star::CircleColliderComponent::~CircleColliderComponent ( void  )

Member Function Documentation

bool star::CircleColliderComponent::CircleCircleCollision ( const CircleColliderComponent collider1,
const CircleColliderComponent collider2 
) const
void star::CircleColliderComponent::CollidesWith ( const BaseColliderComponent other) const
bool star::CircleColliderComponent::CollidesWithLine ( const vec2 &  point1,
const vec2 &  point2 
) const
bool star::CircleColliderComponent::CollidesWithPoint ( const vec2 &  point) const
float star::CircleColliderComponent::GetRadius ( ) const
float star::CircleColliderComponent::GetRealRadius ( ) const
void star::CircleColliderComponent::InitializeColliderComponent ( )
void star::CircleColliderComponent::SetRadius ( float  radius)

Member Data Documentation

float star::CircleColliderComponent::m_Radius

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