Android Open Source - Briscola Call Card Suit Select Activity






From Project

Back to project page Briscola.

License

The source code is released under:

GNU General Public License

If you think the Android project Briscola 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.gmail.craptik.briscola;
//from   w  ww. j a  va  2 s .co  m
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class CallCardSuitSelectActivity extends Activity
{
  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_call_card_suit_select);
  }

  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data)
  {
    if(resultCode == RESULT_OK)
    {
      finish();
    }
  }

  public void onSwordsClicked(View view)
  {
    NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.SWORDS);

    Intent intent = new Intent(this, CallCardSwordsSelectActivity.class);
    startActivityForResult(intent, 0);
  }

  public void onFeathersClicked(View view)
  {
    NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.FEATHERS);

    Intent intent = new Intent(this, CallCardFeathersSelectActivity.class);
    startActivityForResult(intent, 0);
  }

  public void onSunsClicked(View view)
  {
    NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.SUNS);

    Intent intent = new Intent(this, CallCardSunsSelectActivity.class);
    startActivityForResult(intent, 0);
  }

  public void onCupsClicked(View view)
  {
    NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.CUPS);

    Intent intent = new Intent(this, CallCardCupsSelectActivity.class);
    startActivityForResult(intent, 0);
  }
}




Java Source Code List

com.gmail.craptik.briscola.ActionAdapter.java
com.gmail.craptik.briscola.ActionItem.java
com.gmail.craptik.briscola.CallCardCupsSelectActivity.java
com.gmail.craptik.briscola.CallCardFeathersSelectActivity.java
com.gmail.craptik.briscola.CallCardSuitSelectActivity.java
com.gmail.craptik.briscola.CallCardSunsSelectActivity.java
com.gmail.craptik.briscola.CallCardSwordsSelectActivity.java
com.gmail.craptik.briscola.CalleeSelectActivity.java
com.gmail.craptik.briscola.CallerBidSelectActivity.java
com.gmail.craptik.briscola.Card.java
com.gmail.craptik.briscola.ECardNumber.java
com.gmail.craptik.briscola.ECardSuit.java
com.gmail.craptik.briscola.EGameProgress.java
com.gmail.craptik.briscola.FirstNemesisSelectActivity.java
com.gmail.craptik.briscola.GameData.java
com.gmail.craptik.briscola.IDatabase.java
com.gmail.craptik.briscola.MainActivity.java
com.gmail.craptik.briscola.NewGameActivity.java
com.gmail.craptik.briscola.PlayerAdapter.java
com.gmail.craptik.briscola.Player.java
com.gmail.craptik.briscola.PlayersSelectActivity.java
com.gmail.craptik.briscola.SQLGameDatabase.java
com.gmail.craptik.briscola.ScoreSelectActivity.java
com.gmail.craptik.briscola.TestDatabase.java