2023-03-19 22:36:49 +01:00
|
|
|
package com.example.mastermind;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.widget.CheckBox;
|
|
|
|
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
|
|
|
|
import com.example.mastermind.controller.menu.ObservateurMenuDebutPartie;
|
|
|
|
import com.example.mastermind.util.UtilTypePartie;
|
|
|
|
|
|
|
|
public class MenuActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
setContentView(R.layout.activity_menu);
|
2023-04-02 16:55:23 +02:00
|
|
|
this.findViewById(R.id.unJoueur)
|
2023-03-19 22:36:49 +01:00
|
|
|
.setOnClickListener(new ObservateurMenuDebutPartie(this, UtilTypePartie.UN_JOEUR, (CheckBox) this.findViewById(R.id.vide)));
|
2023-04-02 16:55:23 +02:00
|
|
|
this.findViewById(R.id.deuxJoueur)
|
2023-03-19 22:36:49 +01:00
|
|
|
.setOnClickListener(new ObservateurMenuDebutPartie(this, UtilTypePartie.DEUX_JOEUR, (CheckBox) this.findViewById(R.id.vide)));
|
|
|
|
}
|
|
|
|
}
|