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

#include <BaseColliderComponent.h>

Inheritance diagram for star::BaseColliderComponent:
Inheritance graph
Collaboration diagram for star::BaseColliderComponent:
Collaboration graph

Public Member Functions

 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
 
virtual bool CollidesWithPoint (const vec2 &point) const =0
 
virtual bool CollidesWithLine (const vec2 &point1, const vec2 &point2) const =0
 
virtual void CollidesWith (const BaseColliderComponent *other) const =0
 
- 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

virtual void InitializeColliderComponent ()=0
 

Protected Attributes

bool m_bIsTrigger
 
bool m_bIsStatic
 
- Protected Attributes inherited from star::BaseComponent
Objectm_pParentObject
 
bool m_bInitialized
 

Constructor & Destructor Documentation

star::BaseColliderComponent::BaseColliderComponent ( )
star::BaseColliderComponent::BaseColliderComponent ( const tstring layers,
uint8  n = 1 
)
star::BaseColliderComponent::~BaseColliderComponent ( void  )
virtual

Member Function Documentation

virtual void star::BaseColliderComponent::CollidesWith ( const BaseColliderComponent other) const
pure virtual
virtual bool star::BaseColliderComponent::CollidesWithLine ( const vec2 &  point1,
const vec2 &  point2 
) const
pure virtual
virtual bool star::BaseColliderComponent::CollidesWithPoint ( const vec2 &  point) const
pure virtual
void star::BaseColliderComponent::Draw ( )
virtual

Implements star::BaseComponent.

virtual void star::BaseColliderComponent::InitializeColliderComponent ( )
protectedpure virtual
bool star::BaseColliderComponent::IsStatic ( ) const
bool star::BaseColliderComponent::IsTrigger ( ) const
void star::BaseColliderComponent::SetAsStatic ( bool  isStatic)
void star::BaseColliderComponent::SetAsTrigger ( bool  isTrigger)
void star::BaseColliderComponent::Update ( const Context context)
virtual

Implements star::BaseComponent.

Member Data Documentation

bool star::BaseColliderComponent::m_bIsStatic
protected
bool star::BaseColliderComponent::m_bIsTrigger
protected

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