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

acePlayer

By: ace on Aug 4th, 2010  |  syntax: None  |  size: 0.68 KB  |  hits: 11  |  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. /**
  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.     // instance variables - replace the example below with your own
  11.     private Room currentRoom;
  12.  
  13.     /**
  14.      * Constructor for objects of class Player
  15.      */
  16.     public Player(Room currentRoom)
  17.     {
  18.         this.currentRoom = currentRoom;
  19.     }
  20.    
  21.     /**
  22.      * Gets the current room
  23.      */
  24.     public Room getCurrentRoom(){
  25.         return currentRoom;
  26.     }
  27.    
  28.     /**
  29.      * Sets the current room to a different room
  30.      */
  31.     public void setCurrentRoom(Room room){
  32.         currentRoom = room;
  33.     }
  34.  
  35. }