LoveBrains  1.0.0
i_sensor.h
1 
2 /*
3 ** i_sensor.h for LoveBrains in /home/robin_f/Programming/Git/CPP/LoveBrains
4 **
5 ** Made by Guillaume ROBIN
6 ** Login <robin_f@epitech.eu>
7 **
8 ** Started on Wed Jul 22 14:39:45 2015 Guillaume ROBIN
9 ** Last update Fri Aug 21 15:23:35 2015 Guillaume ROBIN
10 */
11 
12 #ifndef I_SENSOR_H_
13 # define I_SENSOR_H_
14 
15 # include <list>
16 
17 # include "Graphics/i_object.h"
18 
19 namespace Graphics
20 {
25  class ISensor
26  {
27  public:
31  virtual ~ISensor() { }
32 
38  virtual void Update(IObject *obj, std::list<IObject *>& env) = 0;
45  virtual bool isValid(IObject *obj) = 0;
46  };
47 }
48 
49 #endif /* !I_SENSOR_H_ */
Define the interface of an object.
Definition: i_object.h:24
Define the interface of a sensor.
Definition: i_sensor.h:25
virtual bool isValid(IObject *obj)=0
Verify if the sensor support the current object.
Contains all the class that define the graphic environment.
virtual ~ISensor()
Destructor.
Definition: i_sensor.h:31
virtual void Update(IObject *obj, std::list< IObject * > &env)=0
Update the object in terms of the environment.