Class DataCollection::GameData
ClassList > DataCollection > GameData
Public Functions
| Type | Name |
|---|---|
| GameData () = default Default constructor for AgentData class. |
|
| const std::vector< int > & | GetCollisions () const Retrieve the stored collisions data. |
| const std::vector< size_t > & | GetShortestPathActions () const Retrieve the stored shortest path actions. |
| const std::vector< cse491::GridPosition > | GetShortestPathPos () const Retrieve the stored shortest path positions. |
| void | StoreCollision (int collision) Store collision data. |
| void | StoreShortestPathAction (size_t action) Store a shortest path action. |
| void | StoreShortestPathPos (const cse491::GridPosition pos) Store a shortest path position. |
| int | getNumOfCol () const Get the number of collisions. |
| void | setNumOfCol (int value) Set the number of collisions. |
| ~GameData () = default Destructor for AgentData class. |
Public Functions Documentation
function GameData
DataCollection::GameData::GameData () = default
function GetCollisions
Retrieve the stored collisions data.
inline const std::vector< int > & DataCollection::GameData::GetCollisions () const
Returns:
A constant reference to the vector of collisions.
function GetShortestPathActions
Retrieve the stored shortest path actions.
inline const std::vector< size_t > & DataCollection::GameData::GetShortestPathActions () const
Returns:
A constant reference to the vector of shortest path actions.
function GetShortestPathPos
Retrieve the stored shortest path positions.
inline const std::vector< cse491::GridPosition > DataCollection::GameData::GetShortestPathPos () const
Returns:
A constant reference to the vector of shortest path positions.
function StoreCollision
Store collision data.
inline void DataCollection::GameData::StoreCollision (
int collision
)
Parameters:
collisionCollision data to store.
function StoreShortestPathAction
Store a shortest path action.
inline void DataCollection::GameData::StoreShortestPathAction (
size_t action
)
Parameters:
actionShortest path action to store.
function StoreShortestPathPos
Store a shortest path position.
inline void DataCollection::GameData::StoreShortestPathPos (
const cse491::GridPosition pos
)
Parameters:
positionShortest path position to store.
function getNumOfCol
Get the number of collisions.
inline int DataCollection::GameData::getNumOfCol () const
Returns:
Number of collisions. -----------These member functions are generated by Chatgpt
function setNumOfCol
Set the number of collisions.
inline void DataCollection::GameData::setNumOfCol (
int value
)
Parameters:
valueThe value to set.
function ~GameData
DataCollection::GameData::~GameData () = default
The documentation for this class was generated from the following file source/DataCollection/GameData.hpp