summaryrefslogtreecommitdiff
path: root/game/selectable.h
blob: 9732dcadf11d97612d20159c6d678705c582baf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "config/types.h"
#include <glm/glm.hpp>
#include <special_members.h>

class Ray;

class Selectable {
public:
	Selectable() = default;
	virtual ~Selectable() = default;
	DEFAULT_MOVE_COPY(Selectable);

	[[nodiscard]] virtual bool intersectRay(const Ray &, Position2D *, float *) const = 0;
};