Class cse491::PacingAgent
ClassList > cse491 > PacingAgent
Inherits the following classes: AgentBase
Public Functions
| Type | Name |
|---|---|
| bool | GetVertical () const Returns the vertical member variable. |
| bool | Initialize () override This agent needs a specific set of actions to function. |
| PacingAgent (size_t id, const std::string & name) |
|
| size_t | SelectAction (const WorldGrid &, const type_options_t &, const item_map_t &, const agent_map_t &) override Choose the action to take a step in the appropriate direction. |
| PacingAgent & | SetVertical (bool vert) |
| ~PacingAgent () = default |
Protected Attributes
| Type | Name |
|---|---|
| bool | reverse = = false Is this agent on their way back? (up/left?) |
| bool | vertical = = true Is this agent moving down&up? False = right&left. |
Public Functions Documentation
function GetVertical
inline bool cse491::PacingAgent::GetVertical () const
function Initialize
This agent needs a specific set of actions to function.
inline bool cse491::PacingAgent::Initialize () override
Returns:
Success.
function PacingAgent
inline cse491::PacingAgent::PacingAgent (
size_t id,
const std::string & name
)
function SelectAction
inline size_t cse491::PacingAgent::SelectAction (
const WorldGrid &,
const type_options_t &,
const item_map_t &,
const agent_map_t &
) override
function SetVertical
inline PacingAgent & cse491::PacingAgent::SetVertical (
bool vert
)
Setter for vertical param
Parameters:
vertwhat vertical should be
Returns:
self
function ~PacingAgent
cse491::PacingAgent::~PacingAgent () = default
Protected Attributes Documentation
variable reverse
bool reverse;
variable vertical
bool vertical;
The documentation for this class was generated from the following file source/Agents/PacingAgent.hpp