Class cowboys::Sensors
Public Functions
Type | Name |
---|---|
Sensors () = default Constructor. |
|
~Sensors () = default Destructor. |
Public Static Functions
Type | Name |
---|---|
SensorDirection | getSensorDirectionEnum (const std::string & direction) |
int | wallDistance (const cse491::WorldGrid & grid, const cse491::AgentBase & agent, SensorDirection direction) returns the distance to the wall in a given direction from the agent |
Public Functions Documentation
function Sensors
cowboys::Sensors::Sensors () = default
function ~Sensors
cowboys::Sensors::~Sensors () = default
Public Static Functions Documentation
function getSensorDirectionEnum
static inline SensorDirection cowboys::Sensors::getSensorDirectionEnum (
const std::string & direction
)
function wallDistance
returns the distance to the wall in a given direction from the agent
static inline int cowboys::Sensors::wallDistance (
const cse491::WorldGrid & grid,
const cse491::AgentBase & agent,
SensorDirection direction
)
Parameters:
grid
grid maze of the worldagent
agent to find the distance fromdirection
direction to find the distance (LEFT, RIGHT, ABOVE, BELOW)
Returns:
distance to the wall
The documentation for this class was generated from the following file source/Agents/GP/GPAgentSensors.hpp