blooming8

COD Zombie - Giocatore

Jul 29th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. package codzombie;
  2.  
  3. public class Giocatore
  4. {
  5.     int punti;
  6.  
  7.     Giocatore(int punti)
  8.     {
  9.         this.punti = punti;
  10.     }
  11.  
  12.     public void GiroDiCassa(int punti)
  13.     {
  14.         this.punti = this.punti - 950;
  15.     }
  16.  
  17.     public boolean ControllaPunti(int punti)
  18.     {
  19.         if (this.punti >= 950) {
  20.             return true;
  21.         } else {
  22.             return false;
  23.         }
  24.     }
  25.  
  26.     public void GetInfo()
  27.     {
  28.         System.out.println("Punti: " + this.punti);
  29.     }
  30.  
  31.     public void Commento()
  32.     {
  33.         if (CassaMagica.GeneraArma() == 2) {
  34.             System.out.println("'Che arma di merda!'");
  35.         } else {
  36.             System.out.println("'Fatti una... vodka stasera!'");
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment