summary refs log tree commit diff stats
path: root/src/entity.h
blob: d99680fdc3d982bd337aeaf2cc6d6ce9ca191adf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef ENTITY_H_0D6CB29A
#define ENTITY_H_0D6CB29A

#include "vector.h"

class Entity {
public:

  // Transform
  vec2s pos;
  vec2s size;

  // Grid placement
  vec2s gridPos;

  // Movement
  bool moving = false;
  vec2s destPos;
  double movementTween = 0.0;
  double speed = 0.0; // Tiles per second

  // Player
  bool player = false;

  // Collision
  bool playerCanPush = false;
  bool trainCanPush = false;

};

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