import { Button, Classes, Intent, NonIdealState } from '@blueprintjs/core';
import { List } from 'immutable';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { ApiPlayer, ApiPlayerMove, ApiPlayerTurnInfo } from '../../api/model';
import { GlobalState } from '../../reducers';
import { actions } from '../../redux/actions/game';
import { getCurrentTurnInfo } from '../../redux/currentGame';
import { getCurrentGame } from '../../redux/games';
import { Board } from './Board';
import './GameScene.css'
import { Hand } from './Hand';
import { ProductionBar } from './ProductionBar';
type GameSceneStateProps = {
players: List,
turnInfo: ApiPlayerTurnInfo | null,
}
type GameSceneDispatchProps = {
sayReady: () => void,
prepareMove: (move: ApiPlayerMove) => void,
}
type GameSceneProps = GameSceneStateProps & GameSceneDispatchProps
class GameScenePresenter extends Component {
render() {
return (
{!this.props.turnInfo && }
{this.props.turnInfo && this.turnInfoScene(this.props.turnInfo)}
);
}
turnInfoScene(turnInfo: ApiPlayerTurnInfo) {
let board = turnInfo.table.boards[turnInfo.playerIndex];
return
}
}
type GamePreStartProps = {
onReadyClicked: () => void
}
const GamePreStart = ({onReadyClicked}: GamePreStartProps) => Click "ready" when you are
}
action={