
player 57
By:
ace on
Aug 4th, 2010 | syntax:
None | size: 0.74 KB | hits: 12 | 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;
private String playerName;
/**
* Constructor for objects of class Player
*/
public Player()
{
this.currentRoom = currentRoom;
this.playerName = playerName;
}
/**
* Gets the current room
*/
public Room getCurrentRoom(){
return currentRoom;
}
/**
* Sets the current room to a different room
*/
public void setCurrentRoom(Room room){
currentRoom = room;
}
}