Add some methods to Cell to turn the Cell into a real Cell
This commit is contained in:
parent
2033e0c3a1
commit
8a5fc9c820
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,11 @@ class Cell {
|
|||
constructor(char, charColor) {
|
||||
this.character = char;
|
||||
}
|
||||
|
||||
floor() { this.character = "."; }
|
||||
upStair() { this.character = "<"; }
|
||||
downStair() { this.character = ">"; }
|
||||
cooridor() { this.character = "#"; }
|
||||
}
|
||||
|
||||
class Point {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue