diff options
author | jbion <joffrey.bion@amadeus.com> | 2019-02-25 21:39:47 +0100 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2019-02-25 21:39:47 +0100 |
commit | 6183c512c63ac94c479193fa50204ca1a5cbc62b (patch) | |
tree | bc2ef10a80c150aaaad3900adcc46fa3547332e5 /frontend/src/components/game/GameScene.jsx | |
parent | Move resource images to frontend (diff) | |
download | seven-wonders-6183c512c63ac94c479193fa50204ca1a5cbc62b.tar.gz seven-wonders-6183c512c63ac94c479193fa50204ca1a5cbc62b.tar.bz2 seven-wonders-6183c512c63ac94c479193fa50204ca1a5cbc62b.zip |
Add production bar
Diffstat (limited to 'frontend/src/components/game/GameScene.jsx')
-rw-r--r-- | frontend/src/components/game/GameScene.jsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/frontend/src/components/game/GameScene.jsx b/frontend/src/components/game/GameScene.jsx index 035d9694..18d7ca26 100644 --- a/frontend/src/components/game/GameScene.jsx +++ b/frontend/src/components/game/GameScene.jsx @@ -11,6 +11,7 @@ import { getCurrentGame } from '../../redux/games'; import { getCurrentPlayer, getPlayers } from '../../redux/players'; import { Hand } from './Hand'; import './GameScene.css' +import { ProductionBar } from './ProductionBar'; type GameSceneProps = { game: Game, @@ -38,11 +39,14 @@ class GameScenePresenter extends Component<GameSceneProps> { } turnInfoScene() { + let turnInfo = this.props.turnInfo; + let board = turnInfo.table.boards[turnInfo.playerIndex]; return <div> - <p>{this.props.turnInfo.message}</p> - <Hand cards={this.props.turnInfo.hand} - wonderUpgradable={this.props.turnInfo.wonderBuildability.buildable} + <p>{turnInfo.message}</p> + <Hand cards={turnInfo.hand} + wonderUpgradable={turnInfo.wonderBuildability.buildable} prepareMove={this.props.prepareMove}/> + <ProductionBar production={board.production}/> </div> } } |