indicate in game state whose turn it is

This commit is contained in:
2024-01-30 21:09:50 -06:00
parent b837facd4a
commit 3d9a0b9836
6 changed files with 11 additions and 3 deletions

View File

@@ -8,9 +8,7 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
Game: typeof import('./src/components/Game.vue')['default']
GameRound: typeof import('./src/components/GameRound.vue')['default']
GameStatus: typeof import('./src/components/GameStatus.vue')['default']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
Player: typeof import('./src/components/Player.vue')['default']
PlayerHP: typeof import('./src/components/PlayerHP.vue')['default']
PlayerItems: typeof import('./src/components/PlayerItems.vue')['default']

View File

@@ -1,7 +1,7 @@
<template>
<v-container>
<v-row class="d-flex justify-center">
<v-sheet :elevation="2" width="800" height="600">
<v-sheet :elevation="2" width="800">
<v-row class="d-flex justify-center">
<v-col cols="auto">
<GameStatus :game="testGame" />
@@ -32,6 +32,7 @@ const testGame: Game = {
{ hp: 3, items: ['🔍', '🔍', '', '', '', '', '', ''] },
],
round: 1,
dealer: true,
damage: 1,
previous: true,
};

View File

@@ -11,6 +11,10 @@ export interface Game {
* Round number.
*/
round: number;
/**
* Whether it is the dealer's turn.
*/
dealer: boolean;
/**
* Damage that a live round will deal this turn.
*/