ace

player 57

ace
Aug 4th, 2010
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. /**
  2. * Write a description of class Player here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class Player
  8. {
  9. // instance variables - replace the example below with your own
  10. private Room currentRoom;
  11. private String playerName;
  12.  
  13. /**
  14. * Constructor for objects of class Player
  15. */
  16. public Player()
  17. {
  18. this.currentRoom = currentRoom;
  19. this.playerName = playerName;
  20. }
  21.  
  22. /**
  23. * Gets the current room
  24. */
  25. public Room getCurrentRoom(){
  26. return currentRoom;
  27. }
  28.  
  29. /**
  30. * Sets the current room to a different room
  31. */
  32. public void setCurrentRoom(Room room){
  33. currentRoom = room;
  34. }
  35.  
  36.  
  37.  
  38. }
Add Comment
Please, Sign In to add comment