test jdr medhi
This commit is contained in:
parent
e22c2a304a
commit
ccd5794053
37
JDR/src/jeuderole/JeuDeRolePolymorphisme.java
Normal file
37
JDR/src/jeuderole/JeuDeRolePolymorphisme.java
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
|
||||
*/
|
||||
package jeuderole;
|
||||
|
||||
import metier.Jeu;
|
||||
|
||||
/**
|
||||
* Test Classe Jeu
|
||||
* @author famille Thevenot
|
||||
*/
|
||||
public class JeuDeRolePolymorphisme {
|
||||
|
||||
/**
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
/**
|
||||
mesPersonnages[0].saluer(mesPersonnages[1]);
|
||||
mesPersonnages[2].saluer(mesPersonnages[0]);
|
||||
mesPersonnages[1].saluer(mesPersonnages[2]);**/
|
||||
|
||||
Jeu role = new Jeu();
|
||||
System.out.println(role.getmesPersonnages());
|
||||
System.out.println(".................");
|
||||
System.out.println(role);
|
||||
System.out.println(role.rechercherPerso("Barbare"));
|
||||
System.out.println(role.rechercherPerso("Panoramix"));
|
||||
System.out.println(".................");
|
||||
System.out.println(role.rechercherPerso("Barbare").rencontrer(role.rechercherPerso("Panoramix")));
|
||||
System.out.println(role.rechercherPerso("Raptout").rencontrer(role.rechercherPerso("Barbare")));
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user