Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
yage::Collider Class Referenceabstract

#include <collider.h>

Inheritance diagram for yage::Collider:
yage::RectangleCollider

Public Member Functions

 Collider (const glm::vec2 &position, const glm::vec2 &size)
 
virtual bool collides (const Collider &collider) const =0
 
virtual bool inside (const glm::vec2 &point) const =0
 

Protected Attributes

glm::vec2 position_
 
glm::vec2 size_
 

Constructor & Destructor Documentation

yage::Collider::Collider ( const glm::vec2 &  position,
const glm::vec2 &  size 
)
inline

Member Function Documentation

virtual bool yage::Collider::collides ( const Collider collider) const
pure virtual

Implemented in yage::RectangleCollider.

virtual bool yage::Collider::inside ( const glm::vec2 &  point) const
pure virtual

Implemented in yage::RectangleCollider.

Member Data Documentation

glm::vec2 yage::Collider::position_
protected
glm::vec2 yage::Collider::size_
protected

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