Skip to content

Commit

Permalink
[#122] Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido-Barnea committed Jan 8, 2024
1 parent 414ec0a commit b6e2253
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions development/src/logic/items/Coin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Item } from './Items';
import { Piece, Position } from '../pieces/Pieces';
import { Piece } from '../pieces/Pieces';
import { Logger } from '../../ui/Logger';
import { coinResource } from '../../ui/Resources';

import { Position } from '../pieces/PiecesHelpers';

export class Coin extends Item {
constructor(position: Position) {
Expand Down
3 changes: 2 additions & 1 deletion development/src/logic/items/Trap.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Item } from './Items';
import { Piece, Position } from '../pieces/Pieces';
import { Piece } from '../pieces/Pieces';
import { items } from '../Logic';
import { Logger } from '../../ui/Logger';
import { spawnItemOnBoard } from '../../ui/Boards';
import { trapResource } from '../../ui/Resources';
import { Position } from '../pieces/PiecesHelpers';


export class Trap extends Item {
Expand Down
3 changes: 2 additions & 1 deletion development/src/ui/Board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { BOARD_WIDTH } from '../logic/Constants';
import { Coin } from '../logic/items/Coin';
import { Item } from '../logic/items/Items';
import { comparePositions, items, pieces } from '../logic/Logic';
import { Piece, Position, Square } from '../logic/pieces/Pieces';
import { Piece } from '../logic/pieces/Pieces';
import { Position, Square } from '../logic/pieces/PiecesHelpers';


export class ChessBoard {
Expand Down
3 changes: 2 additions & 1 deletion development/src/ui/Boards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import {
OVERWORLD_BOARD_ID,
} from '../logic/Constants';
import { Item } from '../logic/items/Items';
import { Piece, Square } from '../logic/pieces/Pieces';
import { Piece } from '../logic/pieces/Pieces';
import { Square } from '../logic/pieces/PiecesHelpers';

let overworld: ChessBoard;
let hell: ChessBoard;
Expand Down

0 comments on commit b6e2253

Please sign in to comment.