
acePlayer
By:
ace on
Aug 4th, 2010 | syntax:
None | size: 0.68 KB | hits: 11 | expires: Never
/**
* Write a description of class Player here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Player
{
// instance variables - replace the example below with your own
private Room currentRoom;
/**
* Constructor for objects of class Player
*/
public Player(Room currentRoom)
{
this.currentRoom = currentRoom;
}
/**
* Gets the current room
*/
public Room getCurrentRoom(){
return currentRoom;
}
/**
* Sets the current room to a different room
*/
public void setCurrentRoom(Room room){
currentRoom = room;
}
}