ace

playerPlayer3

ace
Aug 4th, 2010
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment