blob: 0c18a654eb09170835bc5f60d0bbcebfd2b1df0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Component, ComponentNames } from ".";
import { Coord2D, Direction } from "../interfaces";
export class Grid extends Component {
public initialized: boolean;
public gridPosition: Coord2D;
public movingDirection: Direction;
public pushable: boolean = false;
constructor(pushable: boolean = false, position: Coord2D = { x: 0, y: 0 }) {
super(ComponentNames.Grid);
this.initialized = false;
this.gridPosition = position;
this.movingDirection = Direction.NONE;
this.pushable = pushable;
}
}
|