You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
399 B
36 lines
399 B
//
|
|
// Created by draia on 03/02/23.
|
|
//
|
|
|
|
#ifndef LABYRINTH_TILE_H
|
|
#define LABYRINTH_TILE_H
|
|
|
|
|
|
#include "../position/Position.h"
|
|
|
|
enum type
|
|
{
|
|
EMPTY,
|
|
WALL
|
|
};
|
|
|
|
class Tile
|
|
{
|
|
private:
|
|
Position m_pos;
|
|
type m_type;
|
|
|
|
public:
|
|
explicit Tile(Position pos, type type);
|
|
|
|
const Position &pos() const;
|
|
|
|
const type getType() const;
|
|
|
|
bool traversable();
|
|
|
|
};
|
|
|
|
|
|
#endif //LABYRINTH_TILE_H
|