Skip to content

Instantly share code, notes, and snippets.

View Bapho's full-sized avatar
🙃
trenchcode is not waterproof

Bapho

🙃
trenchcode is not waterproof
View GitHub Profile
@Bapho
Bapho / HelloWeenCardHand.java
Last active December 29, 2015 06:49
This is a class to store values and execute methods of hand cards. - three-day project
package com.baphoware.prjhelloween.executions;
public class HelloWeenCardHand
{
// deklaration und initialisierung der Klassenvariablen
private boolean isHuman = false;
private int[][] handStats = new int[5][4];
private int[] handCards = new int[5];
private int indexHand = 0;
@Bapho
Bapho / GameActivityOnClickListener.java
Last active December 29, 2015 06:49
This is the on-click button listener for the game activity. - three-day project
package com.baphoware.prjhelloween.listener;
import android.view.View;
import android.view.View.OnClickListener;
import com.baphoware.prjhelloween.R;
import com.baphoware.prjhelloween.activities.GameActivity;
import com.baphoware.prjhelloween.executions.HelloWeenCardHand;
public class GameActivityOnClickListener implements OnClickListener
{
@Bapho
Bapho / HelloWeenActivityOnClickListener.java
Last active December 29, 2015 06:49
This is the on-click button listener for the start activity. -three-day project
package com.baphoware.prjhelloween.listener;
import com.baphoware.prjhelloween.R;
import com.baphoware.prjhelloween.activities.GameActivity;
import com.baphoware.prjhelloween.activities.HelloWeenActivity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
public class HelloWeenActivityOnClickListener implements OnClickListener
@Bapho
Bapho / HelloWeenActivity.java
Last active December 29, 2015 06:49
This is the start activity. - three-day project
package com.baphoware.prjhelloween.activities;
import com.baphoware.prjhelloween.R;
import com.baphoware.prjhelloween.R.layout;
import com.baphoware.prjhelloween.R.menu;
import com.baphoware.prjhelloween.listener.HelloWeenActivityOnClickListener;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.Button;
@Bapho
Bapho / GameActivity.java
Last active December 29, 2015 06:49
This is the code of the game activity. - three-day project
package com.baphoware.prjhelloween.activities;
import com.baphoware.prjhelloween.R;
import com.baphoware.prjhelloween.executions.HelloWeenCardHand;
import com.baphoware.prjhelloween.executions.HelloWeenTextViews;
import com.baphoware.prjhelloween.listener.GameActivityOnClickListener;
import android.app.Activity;
import android.os.Bundle;
import android.provider.SyncStateContract.Constants;
import android.view.Menu;