Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * 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;
- }
- }
Add Comment
Please, Sign In to add comment