2016-10-01 21:49:15 +02:00
|
|
|
import React from 'react';
|
2016-10-25 11:19:50 +02:00
|
|
|
import Grid from './grid/grid';
|
2016-10-01 21:49:15 +02:00
|
|
|
import GridControl from './grid/grid-control';
|
|
|
|
|
|
|
|
|
|
class MineSeeker extends React.Component {
|
2016-10-25 11:19:50 +02:00
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
|
2016-11-24 23:41:40 +01:00
|
|
|
let gameAssoc = props.gameId !== '' ? props.gameId : this.makeGameAssoc(50);
|
|
|
|
|
let channel = "mineseeker/channel/" + gameAssoc;
|
2016-10-25 11:19:50 +02:00
|
|
|
|
|
|
|
|
this.state = {
|
2016-11-21 13:45:28 +01:00
|
|
|
env: props.env,
|
2016-11-30 20:15:56 +01:00
|
|
|
ssl: props.ssl,
|
2016-10-25 11:19:50 +02:00
|
|
|
gameInherited: props.gameId !== '',
|
|
|
|
|
gameAssoc: gameAssoc,
|
|
|
|
|
channel: channel,
|
2016-10-28 16:16:27 +02:00
|
|
|
session: null,
|
2016-10-25 11:19:50 +02:00
|
|
|
createGrid: false,
|
2016-11-24 23:41:40 +01:00
|
|
|
stepCache: [],
|
2016-11-30 20:15:56 +01:00
|
|
|
connectionLost: false,
|
|
|
|
|
end: false
|
2016-10-25 11:19:50 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
makeGameAssoc(len) {
|
2016-11-24 23:41:40 +01:00
|
|
|
let text = "";
|
|
|
|
|
let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
|
|
|
for (let i = 0; i < len; i++) {
|
2016-10-25 11:19:50 +02:00
|
|
|
text += possible.charAt(Math.floor(Math.random() * possible.length));
|
|
|
|
|
}
|
|
|
|
|
return text;
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
/**
|
|
|
|
|
* STEP
|
|
|
|
|
*
|
|
|
|
|
* @param coords
|
|
|
|
|
* @returns {{red: *, blue: *}}
|
|
|
|
|
*/
|
2016-11-20 11:53:41 +01:00
|
|
|
makePointsCalcAndStep(coords) {
|
|
|
|
|
let users = this.refs.gridControl.refs.userControl,
|
|
|
|
|
activePlayer = users.state.activePlayer ? 'blue' : 'red',
|
|
|
|
|
inactivePlayer = users.state.activePlayer ? 'red' : 'blue',
|
|
|
|
|
redPoints = activePlayer === 'red'
|
|
|
|
|
? users.refs[activePlayer].state.mines
|
|
|
|
|
: users.refs[inactivePlayer].state.mines,
|
|
|
|
|
bluePoints = activePlayer === 'blue'
|
|
|
|
|
? users.refs[activePlayer].state.mines
|
|
|
|
|
: users.refs[inactivePlayer].state.mines;
|
|
|
|
|
|
|
|
|
|
this.refs.gridControl.stepEvent(coords);
|
|
|
|
|
|
|
|
|
|
let mineCache = this.refs.gridControl.state.foundUserMineCache;
|
|
|
|
|
redPoints += activePlayer === 'red' ? mineCache : 0;
|
|
|
|
|
bluePoints += activePlayer === 'blue' ? mineCache : 0;
|
|
|
|
|
|
2016-11-20 17:44:29 +01:00
|
|
|
return {red: redPoints, blue: bluePoints};
|
2016-11-20 11:53:41 +01:00
|
|
|
}
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
/**
|
|
|
|
|
* START
|
|
|
|
|
*
|
|
|
|
|
* @param payload
|
|
|
|
|
*/
|
|
|
|
|
makeGameStart(payload) {
|
|
|
|
|
/** every time the blue starts */
|
|
|
|
|
this.refs.gridControl.refs.userControl.setState({activePlayer: 1});
|
|
|
|
|
|
|
|
|
|
/** Set up player names w/ server data */
|
|
|
|
|
this.refs.gridControl.refs.userControl.refs.red.setState({
|
|
|
|
|
name: payload.users.red !== '' ? payload.users.red : payload.users.redAnon,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.refs.gridControl.refs.userControl.refs.blue.setState({
|
|
|
|
|
name: payload.users.blue !== '' ? payload.users.blue : payload.users.blueAnon,
|
|
|
|
|
desc: this.refs.gridControl.state.webPlayer === 'blue'
|
|
|
|
|
? this.refs.gridControl.state.desc.you
|
|
|
|
|
: this.refs.gridControl.state.desc.buddy,
|
|
|
|
|
active: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.refs.gridControl.setState({overlay: false});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* THE END
|
|
|
|
|
*
|
|
|
|
|
* @param bluePoints
|
|
|
|
|
* @param redPoints
|
|
|
|
|
* @param resign
|
|
|
|
|
*/
|
2016-11-20 17:44:29 +01:00
|
|
|
makeGameEndIfItEnds(bluePoints, redPoints, resign = false) {
|
2016-11-24 23:41:40 +01:00
|
|
|
let redWins = redPoints > 25,
|
2016-11-21 13:45:28 +01:00
|
|
|
blueWins = bluePoints > 25;
|
2016-11-18 19:28:52 +01:00
|
|
|
|
2016-11-20 17:44:29 +01:00
|
|
|
if (redWins || blueWins || resign) {
|
2016-11-19 12:09:05 +01:00
|
|
|
this.refs.gridControl.state.sound.won.play();
|
|
|
|
|
|
2016-11-20 17:44:29 +01:00
|
|
|
if (false === resign) {
|
|
|
|
|
this.refs.gridControl.setState({
|
|
|
|
|
overlay: true,
|
|
|
|
|
overlayTitle: (redWins ? 'Red' : 'Blue') + " wins the game!",
|
|
|
|
|
overlaySubTitle: "Play again!"
|
|
|
|
|
});
|
|
|
|
|
}
|
2016-11-18 19:28:52 +01:00
|
|
|
|
2016-11-19 12:09:05 +01:00
|
|
|
this.refs.gridControl.showLeftMines();
|
|
|
|
|
|
2016-11-19 15:45:52 +01:00
|
|
|
this.refs.gridControl.refs.userControl.setState({activePlayer: false});
|
2016-11-20 11:06:25 +01:00
|
|
|
this.refs.gridControl.refs.userControl.refs.red.setState({desc: ""});
|
|
|
|
|
this.refs.gridControl.refs.userControl.refs.blue.setState({desc: ""});
|
2016-11-18 19:28:52 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-20 17:44:29 +01:00
|
|
|
resignProcess(color) {
|
|
|
|
|
this.refs.gridControl.setState({
|
|
|
|
|
overlay: true,
|
|
|
|
|
overlayTitle: color === this.refs.gridControl.state.webPlayer
|
|
|
|
|
? "You have been give up"
|
|
|
|
|
: "Your opponent has been resigned",
|
|
|
|
|
overlaySubTitle: color === this.refs.gridControl.state.webPlayer
|
|
|
|
|
? "You LOSE!"
|
|
|
|
|
: "You WIN!"
|
|
|
|
|
});
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
this.setState({end: true});
|
|
|
|
|
|
2016-11-20 17:44:29 +01:00
|
|
|
this.makeGameEndIfItEnds(0, 0, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clickResign() {
|
2016-11-30 20:15:56 +01:00
|
|
|
/** PUBLISH */
|
2016-11-24 23:41:40 +01:00
|
|
|
this.state.session.publish(this.state.channel, {
|
|
|
|
|
'resign': this.refs.gridControl.refs.userControl.state.activePlayer ? 'blue' : 'red'
|
|
|
|
|
});
|
2016-11-20 17:44:29 +01:00
|
|
|
this.resignProcess(this.refs.gridControl.state.webPlayer);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clickResignCancel() {
|
|
|
|
|
this.refs.gridControl.setState({
|
|
|
|
|
overlay: false
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** RESIGN */
|
|
|
|
|
resign() {
|
|
|
|
|
let users = this.refs.gridControl.refs.userControl,
|
|
|
|
|
activePlayer = users.state.activePlayer ? 'blue' : 'red';
|
|
|
|
|
|
|
|
|
|
if (this.refs.gridControl.state.webPlayer === activePlayer) {
|
|
|
|
|
this.refs.gridControl.setState({
|
|
|
|
|
overlay: true,
|
|
|
|
|
overlayTitle: "Are u sure u want to resign?!",
|
|
|
|
|
overlaySubTitle: <div className="resign">
|
|
|
|
|
<a onClick={this.clickResign.bind(this)}>Yes</a>
|
|
|
|
|
<a onClick={this.clickResignCancel.bind(this)}>No!</a>
|
|
|
|
|
</div>
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
wInit(session, data, gridClient) {
|
2016-11-24 23:41:40 +01:00
|
|
|
this.setState({session: session});
|
|
|
|
|
|
|
|
|
|
/** save session to GridControl */
|
|
|
|
|
/** render grid fields - #12 */
|
|
|
|
|
this.refs.gridControl.setState({
|
2016-11-30 20:15:56 +01:00
|
|
|
grid: this.state.gameInherited ? JSON.parse(Base64.decode(data))['grid'] : gridClient,
|
2016-11-24 23:41:40 +01:00
|
|
|
channel: this.state.channel,
|
|
|
|
|
desc: {
|
|
|
|
|
buddy: <div>
|
|
|
|
|
Your buddy is <br/>
|
|
|
|
|
making a <br/>
|
|
|
|
|
move.
|
|
|
|
|
</div>,
|
|
|
|
|
you: <div>
|
|
|
|
|
It is your turn! <br/>
|
|
|
|
|
Make a move.
|
|
|
|
|
</div>
|
|
|
|
|
},
|
|
|
|
|
overlay: true,
|
|
|
|
|
overlayTitle: "We are waiting for your opponent...",
|
|
|
|
|
overlaySubTitle: this.state.gameAssoc
|
|
|
|
|
?
|
|
|
|
|
<div>
|
|
|
|
|
<div className="clippy">
|
|
|
|
|
<input id="foo"
|
|
|
|
|
defaultValue={window.location.href + '/' + this.state.gameAssoc}/>
|
|
|
|
|
<button className="btn">
|
|
|
|
|
<img src="/bundles/mineseeker/images/clippy.svg" alt="Copy to clipboard"/>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<a href={"/play/" + this.state.gameAssoc} target="_blank">Play w/ me!</a>
|
|
|
|
|
</div>
|
|
|
|
|
: '',
|
|
|
|
|
renderGridFields: this.state.gameAssoc
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
wSubscribe(payload, rpcUsers = null) {
|
2016-11-24 23:41:40 +01:00
|
|
|
this.state.env === 'dev' && console.info(
|
|
|
|
|
(typeof payload.user !== 'undefined' ? payload.user : 'user') + " has been subscribed to the channel!"
|
|
|
|
|
);
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
let firstUser = !rpcUsers;
|
2016-11-24 23:41:40 +01:00
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
this.refs.gridControl.state.webPlayer === null && this.refs.gridControl.setState({
|
|
|
|
|
webPlayer: payload.user === payload.users.blue ||
|
|
|
|
|
(
|
|
|
|
|
firstUser && payload.users.blueAnon !== '' ||
|
|
|
|
|
!firstUser && (rpcUsers.blueAnon === '' && rpcUsers.blue === '')
|
|
|
|
|
)
|
|
|
|
|
? 'blue' : 'red'
|
|
|
|
|
});
|
2016-11-24 23:41:40 +01:00
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
/** every user has been came */
|
|
|
|
|
if (
|
|
|
|
|
payload.userCnt === 2 &&
|
|
|
|
|
(
|
|
|
|
|
!this.state.connectionLost ||
|
|
|
|
|
this.state.connectionLost && false === this.refs.gridControl.refs.userControl.state.activePlayer && !this.state.end
|
|
|
|
|
)
|
|
|
|
|
) {
|
|
|
|
|
this.makeGameStart(payload);
|
2016-11-24 23:41:40 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wUnsubscribe(payload) {
|
|
|
|
|
this.state.env === 'dev' && console.info(payload.msg);
|
|
|
|
|
|
|
|
|
|
this.refs.gridControl.setState({
|
|
|
|
|
overlay: true,
|
|
|
|
|
overlayTitle: "The connection has been lost w/ your friend...",
|
|
|
|
|
overlaySubTitle: "Please, restart the game!"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wTopic(payload) {
|
|
|
|
|
/** Auto-Step if this player is not the current user */
|
|
|
|
|
if (this.refs.gridControl.state.webPlayer !== payload.data.player) {
|
|
|
|
|
if (null === payload.data.resign) {
|
|
|
|
|
this.state.env === 'dev' && console.warn(payload.user + " has been stepped to coords: " + payload.data.coords[0] + ', ' + payload.data.coords[1]);
|
|
|
|
|
this.state.env === 'dev' && console.warn('Opponent stepped: Auto-Step process');
|
|
|
|
|
|
|
|
|
|
this.refs.gridControl.refs.userControl.setState({bombSelected: payload.data.bomb});
|
|
|
|
|
|
|
|
|
|
/** STEP */
|
|
|
|
|
let points = this.makePointsCalcAndStep(payload.data.coords);
|
|
|
|
|
|
|
|
|
|
/** THE END */
|
|
|
|
|
this.makeGameEndIfItEnds(points.blue, points.red);
|
|
|
|
|
} else {
|
|
|
|
|
/** RESIGN */
|
|
|
|
|
/** THE END */
|
|
|
|
|
this.resignProcess(payload.data.resign);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Connect - Subscribe */
|
2016-11-30 20:15:56 +01:00
|
|
|
subscribe(rpcUsers = null) {
|
2016-11-24 23:41:40 +01:00
|
|
|
this.state.session.subscribe(
|
|
|
|
|
this.state.channel,
|
|
|
|
|
(uri, payload, log) => {
|
|
|
|
|
let isTopicEvent = typeof payload.data !== 'undefined',
|
|
|
|
|
isNotUnsubscribe = typeof payload.msg === 'undefined';
|
|
|
|
|
|
|
|
|
|
/** CONNECTION */
|
|
|
|
|
if (isTopicEvent) {
|
|
|
|
|
this.wTopic(payload);
|
|
|
|
|
} else {
|
|
|
|
|
if (isNotUnsubscribe) {
|
2016-11-30 20:15:56 +01:00
|
|
|
this.wSubscribe(payload, rpcUsers);
|
2016-11-24 23:41:40 +01:00
|
|
|
} else {
|
|
|
|
|
this.wUnsubscribe(payload);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** RECONNECTION */
|
2016-11-30 20:15:56 +01:00
|
|
|
if (payload.userCnt === 2 && this.state.connectionLost) {
|
2016-11-24 23:41:40 +01:00
|
|
|
this.state.env === 'dev' && console.info('Reconnection process');
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
/** PUBLISH */
|
2016-11-24 23:41:40 +01:00
|
|
|
let cache = this.state.stepCache;
|
|
|
|
|
cache.forEach((item) => this.state.session.publish(this.state.channel, item));
|
2016-11-30 20:15:56 +01:00
|
|
|
this.setState({connectionLost: false, stepCache: []});
|
2016-11-24 23:41:40 +01:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
/** After rendering */
|
2016-10-18 15:58:53 +02:00
|
|
|
componentDidMount() {
|
2016-10-28 16:16:27 +02:00
|
|
|
/** Create Websocket w/ Bahnhof.js */
|
2016-11-24 23:41:40 +01:00
|
|
|
let websocket = WS.connect(
|
2016-11-21 13:45:28 +01:00
|
|
|
this.state.env === 'dev'
|
|
|
|
|
? "ws://mine.dev:6450"
|
2016-11-30 20:15:56 +01:00
|
|
|
: (this.state.ssl === 'true' ? "wss" : "ws") + "://www.mineseeker.ninja:6450"
|
2016-11-21 13:45:28 +01:00
|
|
|
);
|
2016-10-25 11:19:50 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Connect
|
|
|
|
|
* Session is an Autobahn JS WAMP session.
|
|
|
|
|
*/
|
2016-10-28 16:16:27 +02:00
|
|
|
websocket.on("socket/connect", (session) => {
|
2016-11-24 23:41:40 +01:00
|
|
|
this.state.env === 'dev' && console.info("Successfully connected to the Server!");
|
|
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
if (!this.state.connectionLost) {
|
2016-11-24 23:41:40 +01:00
|
|
|
let gridClient = this.state.gameInherited || new Grid().state.grid;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Connect - RPC
|
|
|
|
|
* Send grid information to the server
|
|
|
|
|
*/
|
|
|
|
|
session
|
|
|
|
|
.call(
|
|
|
|
|
this.state.gameInherited ? "mineseeker-rpc/connectGame" : "mineseeker-rpc/startGame",
|
|
|
|
|
this.state.gameInherited ? this.state.gameAssoc : [Base64.encode(JSON.stringify(gridClient)), this.state.gameAssoc]
|
|
|
|
|
)
|
|
|
|
|
.then(
|
2016-11-30 20:15:56 +01:00
|
|
|
(data) => {
|
|
|
|
|
this.state.env === 'dev' && console.info('RPC has been called');
|
2016-11-24 23:41:40 +01:00
|
|
|
|
2016-11-30 20:15:56 +01:00
|
|
|
this.wInit(session, data, gridClient);
|
|
|
|
|
this.subscribe(this.state.gameInherited && JSON.parse(Base64.decode(data))['users']);
|
2016-11-24 23:41:40 +01:00
|
|
|
},
|
|
|
|
|
(error, desc) => this.state.env === 'dev' && console.error(["RPC Error", error, desc])
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({session: session});
|
|
|
|
|
this.subscribe();
|
|
|
|
|
}
|
2016-10-18 15:58:53 +02:00
|
|
|
});
|
|
|
|
|
|
2016-10-25 11:19:50 +02:00
|
|
|
/**
|
2016-10-28 16:16:27 +02:00
|
|
|
* DisConnect
|
2016-10-25 11:19:50 +02:00
|
|
|
* Error provides us with some insight into the disconnection: error.reason and error.code
|
|
|
|
|
*/
|
2016-11-24 23:41:40 +01:00
|
|
|
websocket.on("socket/disconnect", (error) => {
|
|
|
|
|
this.state.env === 'dev' && console.error("Disconnected for " + error.reason + " with code " + error.code);
|
2016-11-30 20:15:56 +01:00
|
|
|
|
|
|
|
|
error.code === 6 && this.setState({connectionLost: true});
|
|
|
|
|
error.code === 3 && setTimeout(function () {
|
|
|
|
|
this.componentDidMount();
|
|
|
|
|
}.bind(this), 500);
|
2016-11-24 23:41:40 +01:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Cache the steps unless reconnection
|
|
|
|
|
*
|
|
|
|
|
* @param dataPack
|
|
|
|
|
*/
|
|
|
|
|
cachePublish(dataPack) {
|
|
|
|
|
let cache = this.state.stepCache;
|
|
|
|
|
cache.push(dataPack);
|
|
|
|
|
this.setState({stepCache: cache});
|
2016-10-18 15:58:53 +02:00
|
|
|
}
|
2016-10-01 21:49:15 +02:00
|
|
|
|
2016-10-28 16:16:27 +02:00
|
|
|
onClick(coords) {
|
2016-11-24 23:41:40 +01:00
|
|
|
let activePlayer = this.refs.gridControl.refs.userControl.state.activePlayer ? 'blue' : 'red';
|
2016-10-28 16:16:27 +02:00
|
|
|
|
2016-11-19 12:09:05 +01:00
|
|
|
/** if the clicked field is NEVER CLICKED */
|
|
|
|
|
if (this.refs.gridControl.checkFieldHasBeenNeverClicked(coords[0], coords[1])) {
|
|
|
|
|
/** Player step and it is the current player */
|
|
|
|
|
if (activePlayer === this.refs.gridControl.state.webPlayer) {
|
2016-11-20 11:53:41 +01:00
|
|
|
/** STEP */
|
|
|
|
|
let points = this.makePointsCalcAndStep(coords);
|
2016-11-19 12:09:05 +01:00
|
|
|
|
|
|
|
|
/** THE END */
|
2016-11-20 11:53:41 +01:00
|
|
|
this.makeGameEndIfItEnds(points.blue, points.red);
|
2016-11-19 12:09:05 +01:00
|
|
|
|
2016-11-24 23:41:40 +01:00
|
|
|
let dataPack = {
|
|
|
|
|
'coords': coords,
|
|
|
|
|
'player': activePlayer,
|
|
|
|
|
'bomb': this.refs.gridControl.refs.userControl.state.bombSelected,
|
|
|
|
|
'redPoints': points.red,
|
|
|
|
|
'bluePoints': points.blue,
|
|
|
|
|
'resign': null,
|
|
|
|
|
'redExplodedBomb': activePlayer === 'red' && this.refs.gridControl.refs.userControl.state.bombSelected,
|
|
|
|
|
'blueExplodedBomb': activePlayer === 'blue' && this.refs.gridControl.refs.userControl.state.bombSelected
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** PUBLISH */
|
2016-11-30 20:15:56 +01:00
|
|
|
!this.state.connectionLost
|
2016-11-24 23:41:40 +01:00
|
|
|
? this.state.session.publish(this.state.channel, dataPack)
|
|
|
|
|
: this.cachePublish(dataPack);
|
2016-11-19 12:09:05 +01:00
|
|
|
}
|
2016-10-28 16:16:27 +02:00
|
|
|
}
|
2016-10-25 11:19:50 +02:00
|
|
|
}
|
|
|
|
|
|
2016-10-01 21:49:15 +02:00
|
|
|
render() {
|
|
|
|
|
return (
|
2016-11-14 20:04:24 +01:00
|
|
|
<GridControl ref="gridControl"
|
|
|
|
|
env={this.props.env === 'dev'}
|
2016-11-20 17:44:29 +01:00
|
|
|
resign={this.resign.bind(this)}
|
2016-11-14 20:04:24 +01:00
|
|
|
onClick={this.onClick.bind(this)}/>
|
2016-10-01 21:49:15 +02:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default MineSeeker;
|