File size: 1,039 Bytes
4ee4376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export default class corners {
  #cell;
  #key;
  #top    = false;
  #right  = false;
  #bottom = false;
  #left   = false;
  #none   = false;

  constructor (options) {
    this.#cell   = options.cell;
    this.#key    = options.cell.scene.city.corner;
    this.#top    = options.corners.top    || false;
    this.#right  = options.corners.right  || false;
    this.#bottom = options.corners.bottom || false;
    this.#left   = options.corners.left   || false;
    this.#none   = options.corners.none   || false;
  }

  get key () {
    return this[this.#key];
  }

  get top () {
    return this.#top;
  }

  set top (top) {
    this.#top = top;
  }

  get right () {
    return this.#right;
  }

  set right (right) {
    this.#right = right;
  }

  get bottom () {
    return this.#bottom;
  }

  set bottom (bottom) {
    this.#bottom = bottom;
  }

  get left () {
    return this.#left;
  }

  set left (left) {
    this.#left = left;
  }

  get none () {
    return this.#none;
  }

  set none (none) {
    this.#none = none;
  }
}