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

Define the interface of a sensor. More...

#include <i_sensor.h>

Public Member Functions

virtual ~ISensor ()
 Destructor.
 
virtual void Update (IObject *obj, std::list< IObject * > &env)=0
 Update the object in terms of the environment. More...
 
virtual bool isValid (IObject *obj)=0
 Verify if the sensor support the current object. More...
 

Detailed Description

Define the interface of a sensor.

Member Function Documentation

virtual bool Graphics::ISensor::isValid ( IObject obj)
pure virtual

Verify if the sensor support the current object.

Parameters
obj: Contains the current object.
Returns
true : if the object is supported.
false : if the object is not supported.
virtual void Graphics::ISensor::Update ( IObject obj,
std::list< IObject * > &  env 
)
pure virtual

Update the object in terms of the environment.

Parameters
obj: Contains the object that is involved by the sensor.
env: Contains all the objects in the environment.

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