summaryrefslogtreecommitdiffstats
path: root/src/collision/ColBox.h
blob: ac2cd675631a0c4069999e9cc3167734d4817ca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "SurfaceTable.h"

struct CColBox
{
	CVector min;
	CVector max;
	uint8 surface;
	uint8 piece;

	void Set(const CVector &min, const CVector &max, uint8 surf = SURFACE_DEFAULT, uint8 piece = 0);
	CVector GetSize(void) { return max - min; }

	CColBox& operator=(const CColBox &other);
};