public void subscribeSms(View view) { this.inputMethodManager.hideSoftInputFromWindow(this.sms.getWindowToken(), 0); if (this.sms.getText().length() < 10) { this.displaySmsAlert(); } else { MessageBoard.instance().subscribeSms(this.sms.getText().toString()); Toast.makeText(this, Constants.CONFIRM_SUBSCRIPTION_MESSAGE, Toast.LENGTH_LONG).show(); } }
private void doFirstTurn() throws GameActionException { MessageBoard.setDefaultChannelValues(); spawnSoldier(); computePastrScores(); computeBestPastrLocation(); MessageBoard.BEST_PASTR_LOC.writeMapLocation(computedBestPastrLocation); Strategy.active = pickStrategyByAnalyzingMap(); MessageBoard.STRATEGY.writeStrategy(Strategy.active); // Debug.indicate("map", 2, "going with " + Strategy.active.toString()); }
protected static void init(RobotController theRC) throws GameActionException { rc = theRC; us = rc.getTeam(); them = us.opponent(); ourHQ = rc.senseHQLocation(); theirHQ = rc.senseEnemyHQLocation(); mapWidth = rc.getMapWidth(); mapHeight = rc.getMapHeight(); FastRandom.init(); MessageBoard.init(theRC); Bfs.init(theRC); }
public void subscribeEmail(View view) { this.inputMethodManager.hideSoftInputFromWindow(this.email.getWindowToken(), 0); MessageBoard.instance().subscribeEmail(this.email.getText().toString()); Toast.makeText(this, Constants.CONFIRM_SUBSCRIPTION_MESSAGE, Toast.LENGTH_LONG).show(); }
public void post(View view) { this.inputMethodManager.hideSoftInputFromWindow(this.message.getWindowToken(), 0); MessageBoard.instance().post(this.message.getText().toString()); }