Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Public Attributes | List of all members
orxonox::ScriptableControllerAPI::NearObjectHandler Struct Reference

Groups everything together that is needed to handle a near-object event. More...

Public Member Functions

 NearObjectHandler (WorldEntity *entity1, WorldEntity *entity2, std::string id1, std::string id2, double distance, std::function< void(std::string, std::string)> callback)
 

Public Attributes

std::function< void(std::string, std::string)> callback_
 
double distance_
 
WorldEntityentity1_
 
WorldEntityentity2_
 
std::string id1_
 
std::string id2_
 

Detailed Description

Groups everything together that is needed to handle a near-object event.

Constructor & Destructor Documentation

orxonox::ScriptableControllerAPI::NearObjectHandler::NearObjectHandler ( WorldEntity entity1,
WorldEntity entity2,
std::string  id1,
std::string  id2,
double  distance,
std::function< void(std::string, std::string)>  callback 
)
inline

Member Data Documentation

std::function<void (std::string, std::string)> orxonox::ScriptableControllerAPI::NearObjectHandler::callback_
double orxonox::ScriptableControllerAPI::NearObjectHandler::distance_
WorldEntity* orxonox::ScriptableControllerAPI::NearObjectHandler::entity1_
WorldEntity * orxonox::ScriptableControllerAPI::NearObjectHandler::entity2_
std::string orxonox::ScriptableControllerAPI::NearObjectHandler::id1_
std::string orxonox::ScriptableControllerAPI::NearObjectHandler::id2_

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