2023-04-03 09:13:48 +02:00
|
|
|
package com.example.mastermind;
|
|
|
|
|
|
|
|
import android.app.Activity;
|
2023-04-03 12:38:17 +02:00
|
|
|
import android.content.Intent;
|
2023-04-03 09:13:48 +02:00
|
|
|
import android.os.Bundle;
|
2023-04-03 12:38:17 +02:00
|
|
|
import android.widget.Button;
|
|
|
|
import android.view.View;
|
2023-04-03 09:13:48 +02:00
|
|
|
|
|
|
|
public class MainActivity extends Activity {
|
2023-04-03 12:38:17 +02:00
|
|
|
private Button mHotSeat;
|
|
|
|
private Button mORDI;
|
|
|
|
private Button mSettings;
|
|
|
|
//private Button mRules;
|
2023-04-03 09:13:48 +02:00
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
setContentView(R.layout.activity_main);
|
2023-04-03 12:38:17 +02:00
|
|
|
|
|
|
|
mHotSeat = findViewById(R.id.HotSeat);
|
|
|
|
mORDI = findViewById(R.id.ORDI);
|
|
|
|
mSettings = findViewById(R.id.Settings);
|
|
|
|
//mRules = findViewById(R.id.Rules);
|
|
|
|
/*mHotSeat.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
Intent tp1Intent = new Intent(MainActivity.this, HotSeat.class);
|
|
|
|
startActivity(tp1Intent);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
mORDI.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
Intent tp2Intent = new Intent(MainActivity.this, ORDI.class);
|
|
|
|
startActivity(tp2Intent);
|
|
|
|
}
|
|
|
|
});*/
|
2023-04-03 15:39:44 +02:00
|
|
|
mSettings.setOnClickListener(new View.OnClickListener() {
|
2023-04-03 12:38:17 +02:00
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
2023-04-03 15:39:44 +02:00
|
|
|
Intent tp3Intent = new Intent(MainActivity.this, SettingsActivity.class);
|
2023-04-03 12:38:17 +02:00
|
|
|
startActivity(tp3Intent);
|
|
|
|
}
|
2023-04-03 15:39:44 +02:00
|
|
|
});
|
2023-04-03 12:38:17 +02:00
|
|
|
/*mTP4.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
Intent tp4Intent = new Intent(MainActivity.this, TP4.class);
|
|
|
|
startActivity(tp4Intent);
|
|
|
|
}
|
|
|
|
});*/
|
2023-04-03 09:13:48 +02:00
|
|
|
}
|
|
|
|
}
|