
playerPlayer3
By:
ace on
Aug 4th, 2010 | syntax:
None | size: 0.75 KB | hits: 14 | expires: Never
import java.util.ArrayList;
/**
* Write a description of class Player here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Player
{
//
//public ArrayList<Player> players;
private String playerName;
public Room currentRoom;
/**
* Constructor for objects of class Player
*/
public Player (String playerName)
{
// initialise instance variables
//players = new ArrayList<Player>();
//players.add(player);
this.playerName = playerName;
this.currentRoom = currentRoom;
}
/**
* method to get player name
*/
public String getPlayerName()
{
return playerName;
}
}