Android Open Source - BoggleGame Play Activity






From Project

Back to project page BoggleGame.

License

The source code is released under:

MIT License

If you think the Android project BoggleGame listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.wordboggle;
/*from w  ww.j  a  v a 2  s .c o m*/

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;


public class PlayActivity extends Activity implements OnClickListener {
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_play);
    
    
  }

  
  /*
   * 
   */
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
  }

  
  /*
   * Button Listener Template
   */
  @Override
  public void onClick(View v) {
    // TODO Auto-generated method stub
    
  }

  
  /*
   * start the single player mode
   */
  public void onClickSingle(View view){
    Intent intent = new Intent();
    intent.setClass(getApplicationContext(), NewGameActivity.class);
    startActivity(intent);
  }
  
  
  /*
   * start the two player basic throat mode
   */
  public void onClickBasic(View view){
    Intent intent = new Intent();
    intent.putExtra("gameMode", "Basic");
    intent.setClass(getApplicationContext(), TwoPlayerGameActivity.class);
    startActivity(intent);
  }
  
  
  /*
   * start the two player cut throat mode
   */
  public void onClickCutthroat(View view){
    Intent intent = new Intent();
    intent.putExtra("gameMode", "CutThroat");
    intent.setClass(getApplicationContext(), TwoPlayerGameActivity.class);
    startActivity(intent);
  }
  
  
  /*
   * display the boggle instructions when pressed
   */
  public void onClickHelp(View view){
    Intent intent = new Intent();
    intent.setClass(getApplicationContext(), HelpActivity.class);
    startActivity(intent); 
  }
}




Java Source Code List

com.example.wordboggle.BTManager.java
com.example.wordboggle.BasicModaActivity.java
com.example.wordboggle.BoggleBoard.java
com.example.wordboggle.Dictionary.java
com.example.wordboggle.DisplayDevices.java
com.example.wordboggle.GameActivity.java
com.example.wordboggle.GameManager.java
com.example.wordboggle.GridPoint.java
com.example.wordboggle.HelpActivity.java
com.example.wordboggle.MainActivity.java
com.example.wordboggle.NewGameActivity.java
com.example.wordboggle.PlayActivity.java
com.example.wordboggle.ScoreActivity.java
com.example.wordboggle.SquareLayout.java
com.example.wordboggle.SquareTextView.java
com.example.wordboggle.TwoPlayerGameActivity.java
com.example.wordboggle.TwoPlayerResults.java
com.example.wordboggle.UserInterface.java