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

player 57

By: ace on Aug 4th, 2010  |  syntax: None  |  size: 0.74 KB  |  hits: 12  |  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. /**
  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. }