summaryrefslogtreecommitdiff
path: root/frontend/src/components/game/GameScene.jsx
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-26 20:30:59 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-26 20:30:59 +0100
commit6c7724ddd48f518cbee0437fa36b105da3ce5852 (patch)
tree279d0f625d82c9d3d38d12ac6fce4b303e906f2f /frontend/src/components/game/GameScene.jsx
parentFix wonder images aspect ratio (diff)
downloadseven-wonders-6c7724ddd48f518cbee0437fa36b105da3ce5852.tar.gz
seven-wonders-6c7724ddd48f518cbee0437fa36b105da3ce5852.tar.bz2
seven-wonders-6c7724ddd48f518cbee0437fa36b105da3ce5852.zip
Add board and played cards
Diffstat (limited to 'frontend/src/components/game/GameScene.jsx')
-rw-r--r--frontend/src/components/game/GameScene.jsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/frontend/src/components/game/GameScene.jsx b/frontend/src/components/game/GameScene.jsx
index 23be5ef1..5221ab8e 100644
--- a/frontend/src/components/game/GameScene.jsx
+++ b/frontend/src/components/game/GameScene.jsx
@@ -9,6 +9,7 @@ import { actions } from '../../redux/actions/game';
import { getCurrentTurnInfo } from '../../redux/currentGame';
import { getCurrentGame } from '../../redux/games';
import { getCurrentPlayer, getPlayers } from '../../redux/players';
+import { Board } from './Board';
import { Hand } from './Hand';
import './GameScene.css'
import { ProductionBar } from './ProductionBar';
@@ -29,11 +30,6 @@ class GameScenePresenter extends Component<GameSceneProps> {
<div className='gameSceneRoot fullscreen'>
{!this.props.turnInfo && <GamePreStart onReadyClicked={this.props.sayReady}/>}
{this.props.turnInfo && this.turnInfoScene()}
-
- <h4 style={{marginTop: '2rem'}}>Debug</h4>
- <div>
- <pre>{JSON.stringify(this.props.turnInfo, null, 2) }</pre>
- </div>
</div>
);
}
@@ -43,6 +39,7 @@ class GameScenePresenter extends Component<GameSceneProps> {
let board = turnInfo.table.boards[turnInfo.playerIndex];
return <div>
<p>{turnInfo.message}</p>
+ <Board board={board}/>
<Hand cards={turnInfo.hand}
wonderUpgradable={turnInfo.wonderBuildability.buildable}
prepareMove={this.props.prepareMove}/>
bgstack15