summaryrefslogtreecommitdiff
path: root/src/engine/components/Grid.ts
blob: a62cc7b7d95183ba1bd1eede8003d5914a22bcdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Component, ComponentNames } from ".";
import { Coord2D, Direction } from "../interfaces";

export class Grid extends Component {
  public initialized: boolean;

  public gridPosition: Coord2D;
  public movingDirection: Direction;

  constructor(position: Coord2D = { x: 0, y: 0 }) {
    super(ComponentNames.Grid);

    this.initialized = false;
    this.gridPosition = position;
    this.movingDirection = Direction.NONE;
  }
}