Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Brigand extends Humain
- {
- protected String look;
- protected int nbDame, recompense;
- protected boolean prison;
- public Brigand()
- {
- this.boisson = "Tord-Boyaux";
- this.look = "méchant";
- this.recompense = 100;
- this.prison = false;
- }
- public Brigand(String nom)
- {
- this.nom = nom;
- this.boisson = "Tord-Boyaux";
- this.look = "méchant";
- this.recompense = 100;
- this.prison = false;
- }
- public Brigand(String nom, String look, String boisson)
- {
- this.nom = nom;
- this.boisson = boisson;
- this.look = look;
- this.recompense = 100;
- this.prison = false;
- }
- public void kidnappe(Dame dame)
- {
- System.out.println(this.nom + " - Ha ha ! " + dame.nom + ", tu es mienne désormais !");
- this.nbDame ++;
- }
- public void nom()
- {
- System.out.println("Le " + this.look + " " + this.nom + ".");
- }
- public void presentation()
- {
- System.out.println(this.nom + " - Bonjour ! Je suis " + this.nom + " le " + this.look +
- " et j'aime le " + this.boisson + ".");
- System.out.println(this.nom + " - J'ai l'air " + this.look + " et j'ai déjà kidnappé " + this.nbDame + " dames !");
- System.out.println(this.nom + " - Ma tête est mise à prix " + this.recompense + "$.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement