Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

playerPlayer3

By: ace on Aug 4th, 2010  |  syntax: None  |  size: 0.75 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import java.util.ArrayList;
  2. /**
  3.  * Write a description of class Player here.
  4.  *
  5.  * @author (your name)
  6.  * @version (a version number or a date)
  7.  */
  8. public class Player
  9. {
  10.     //
  11.    
  12.     //public ArrayList<Player> players;
  13.     private String playerName;
  14.     public Room currentRoom;
  15.    
  16.    
  17.  
  18.     /**
  19.      * Constructor for objects of class Player
  20.      */
  21.     public Player (String playerName)
  22.     {
  23.         // initialise instance variables
  24.  
  25.        //players = new ArrayList<Player>();
  26.        //players.add(player);
  27.      
  28.        this.playerName = playerName;
  29.        this.currentRoom = currentRoom;
  30.     }
  31.  
  32.    /**
  33.     * method to get player name
  34.     */
  35.    
  36.    public String getPlayerName()
  37.    {
  38.        return playerName;
  39.     }
  40.    
  41. }