Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package codzombie;
- public class Giocatore
- {
- int punti;
- Giocatore(int punti)
- {
- this.punti = punti;
- }
- public void GiroDiCassa(int punti)
- {
- this.punti = this.punti - 950;
- }
- public boolean ControllaPunti(int punti)
- {
- if (this.punti >= 950) {
- return true;
- } else {
- return false;
- }
- }
- public void GetInfo()
- {
- System.out.println("Punti: " + this.punti);
- }
- public void Commento()
- {
- if (CassaMagica.GeneraArma() == 2) {
- System.out.println("'Che arma di merda!'");
- } else {
- System.out.println("'Fatti una... vodka stasera!'");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment