summary refs log tree commit diff stats
path: root/src/direction.h
blob: 8108505c329b1e620da7a84acc6de27c99dac4a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef DIRECTION_H_2B40D968
#define DIRECTION_H_2B40D968

#include "vector.h"

enum class Direction {
  none,
  left,
  right,
  up,
  down
};

vec2s posInDir(vec2s orig, Direction dir);

Direction oppositeDir(Direction dir);

#endif /* end of include guard: DIRECTION_H_2B40D968 */