blob: 856d5f5bbcf065130327261c2fff37c4fa6130f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
typedef unsigned collision_T;
enum _collisions {
COLLISION_SOLID,
COLLISION_HAZARD,
COLLISION_FLOOR,
COLLISION_LENGTH // no. of checked inputs
};
#define collision_solid(a) (1 & (a) >> COLLISION_SOLID)
#define collision_hazard(a) (1 & (a) >> COLLISION_HAZARD)
#define collision_floor(a) (1 & (a) >> COLLISION_FLOOR)
|