Class cse491::MazeWorld
ClassList > cse491 > MazeWorld
Inherits the following classes: WorldBase
Public Functions
Type | Name |
---|---|
void | ConfigAgent (AgentBase & agent) override const |
void | ConfigAgent (AgentBase & agent) override |
int | DoAction (AgentBase & agent, size_t action_id) override Allow the agents to move around the maze. |
bool | IsTraversable (const AgentBase &, cse491::GridPosition pos) override const |
MazeWorld (unsigned int seed=0) |
|
~MazeWorld () = default |
Protected Types
Type | Name |
---|---|
enum | ActionType |
Protected Attributes
Type | Name |
---|---|
size_t | floor_id Easy access to floor CellType ID. |
size_t | wall_id Easy access to wall CellType ID. |
Public Functions Documentation
function ConfigAgent [1/2]
inline void cse491::MazeWorld::ConfigAgent (
AgentBase & agent
) override const
function ConfigAgent [2/2]
inline void cse491::MazeWorld::ConfigAgent (
AgentBase & agent
) override
function DoAction
inline int cse491::MazeWorld::DoAction (
AgentBase & agent,
size_t action_id
) override
function IsTraversable
inline bool cse491::MazeWorld::IsTraversable (
const AgentBase &,
cse491::GridPosition pos
) override const
function MazeWorld
inline cse491::MazeWorld::MazeWorld (
unsigned int seed=0
)
function ~MazeWorld
cse491::MazeWorld::~MazeWorld () = default
Protected Types Documentation
enum ActionType
enum cse491::MazeWorld::ActionType {
REMAIN_STILL = 0,
MOVE_UP,
MOVE_DOWN,
MOVE_LEFT,
MOVE_RIGHT,
MOVE_ARBITRARY
};
Protected Attributes Documentation
variable floor_id
size_t floor_id;
variable wall_id
size_t wall_id;
The documentation for this class was generated from the following file source/Worlds/MazeWorld.hpp