LoveBrains  1.0.0
Public Member Functions | List of all members
Graphics::ICollider Class Referenceabstract

Define the interface for the collider object. More...

#include <i_collider.h>

Public Member Functions

virtual ~ICollider ()
 Destructor.
 
virtual bool isValid (std::string const &obj_1, std::string const &obj_2)=0
 Verify if the couple of objects is supported by the collider. More...
 
virtual bool isCollision (IObject *obj_1, IObject *obj_2)=0
 Compute if the couple of objects is colliding. More...
 
virtual IBehaviorgetAction (void) const =0
 Get the action that the collider will execute. More...
 

Detailed Description

Define the interface for the collider object.

Member Function Documentation

virtual IBehavior* Graphics::ICollider::getAction ( void  ) const
pure virtual

Get the action that the collider will execute.

Returns
IBehavior *
virtual bool Graphics::ICollider::isCollision ( IObject obj_1,
IObject obj_2 
)
pure virtual

Compute if the couple of objects is colliding.

Parameters
obj_1: Contains the first object.
obj_2: Contains the second object.
Returns
true : if the couple of objects is colliding.
false : if they don't collide.
virtual bool Graphics::ICollider::isValid ( std::string const &  obj_1,
std::string const &  obj_2 
)
pure virtual

Verify if the couple of objects is supported by the collider.

Parameters
obj_1: Contains the key of the first object.
obj_2: Contains the key of the second object.
Returns
true : if the collider support the couple of objects.
false : if the collider doesn't support the couple of objects.

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