Struct Ant

Struct Documentation

struct Ant

Class for Ant objects.

Public Functions

Ant(const Node &start = Node(), const int id = 0)

Constructor to create a new ant.

Return
no return value
Parameters
  • start: Start node of ant
  • id: Ant id

Public Members

bool found_goal_ = false
int id_
int steps_ = 0
Node current_node_
Node previous_node_
std::vector<Node> path_