LoveBrains  1.0.0
i_collider.h
1 /*
2 ** i_collider.h for LoveBrains in /home/robin_f/Programming/Git/CPP/LoveBrains
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Wed Jul 22 14:31:32 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 15:03:38 2015 Guillaume ROBIN
9 */
10 
11 #ifndef I_COLLIDER_H_
12 # define I_COLLIDER_H_
13 
14 # include "Graphics/i_behavior.h"
15 
16 namespace Graphics
17 {
22  class ICollider
23  {
24  public:
28  virtual ~ICollider() { }
29 
37  virtual bool isValid(std::string const& obj_1, std::string const& obj_2) = 0;
45  virtual bool isCollision(IObject *obj_1, IObject *obj_2) = 0;
46 
51  virtual IBehavior *getAction(void) const = 0;
52  };
53 }
54 
55 #endif /* !A_COLLIDER_H_ */
virtual bool isCollision(IObject *obj_1, IObject *obj_2)=0
Compute if the couple of objects is colliding.
Define the interface of an object.
Definition: i_object.h:24
Contains all the class that define the graphic environment.
virtual ~ICollider()
Destructor.
Definition: i_collider.h:28
Define the interface for the collider object.
Definition: i_collider.h:22
Define a behavior for a collider.
Definition: i_behavior.h:22
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.
virtual IBehavior * getAction(void) const =0
Get the action that the collider will execute.