aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/HitResult.h
blob: efcfa75aa7475c6e8a454f38f8378f1fa97b4409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include "Vec3.h"

class HitResult
{
public:
	enum Type
	{
		TILE, ENTITY
	};

	Type type;
	int x, y, z, f;
	Vec3 *pos;
	shared_ptr<Entity> entity;

	HitResult(int x, int y, int z, int f, Vec3 *pos);

	HitResult(shared_ptr<Entity> entity);

	double distanceTo(shared_ptr<Entity> e);
};