feat: add portal support

This commit is contained in:
2021-06-24 22:07:40 +02:00
parent 7b1ce8af8f
commit be7dd1ca94
10 changed files with 127 additions and 15 deletions

View File

@ -65,6 +65,9 @@ class Board {
Rock rock = (Rock)entity;
data[y][x] = new Piece(PieceType.Rock, entity.id, rock.getHp(), rock.maxHP);
}
case Portals -> {
data[y][x] = new Piece(PieceType.Portal, entity.id);
}
case InfinityStones -> {
InfinityStone stone = (InfinityStone)entity;
data[y][x] = new Piece(PieceType.InfinityStone, entity.id, stone.type);