From a4a150d159291fdabdde45e5e034cbda3a63ba24 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Wed, 16 Apr 2014 01:22:09 +0200 Subject: Fix typo --- src/esieequest/model/Game.java | 2 +- src/esieequest/model/entities/Player.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/esieequest/model/Game.java b/src/esieequest/model/Game.java index 8de81b2..d1607a9 100644 --- a/src/esieequest/model/Game.java +++ b/src/esieequest/model/Game.java @@ -219,7 +219,7 @@ public class Game { this.rooms.get("OffscriptItemsStorageroom").getItems().putItem("Edgeless Safety Cube", new Item("An Edgeless Safety Cube.", 5, true)); this.rooms.get("OffscriptItemsStorageroom").getItems().putItem("Portable Black-hole", new Item("A portable black-hole that has a negative mass.", -10, true)); - this.rooms.get("OffscriptTeleportationBeamerroom").getItems().putItem("Portable Quantum Tunelling Device", new Beamer("Basically a teleporter.")); + this.rooms.get("OffscriptTeleportationBeamerroom").getItems().putItem("Portable Quantum Tunneling Device", new Beamer("Basically a teleporter.")); final KeyCard keyCard = new KeyCard("A KeyCard that opens a locked door."); final LockedDoor lockedDoorLock = (LockedDoor) this.rooms.get("OffscriptLock").getExit("north"); diff --git a/src/esieequest/model/entities/Player.java b/src/esieequest/model/entities/Player.java index 4190eaa..841d6a6 100644 --- a/src/esieequest/model/entities/Player.java +++ b/src/esieequest/model/entities/Player.java @@ -22,6 +22,13 @@ public class Player { private int nbSteps; private int maxNbSteps; + /** + * Creates a new player. + * + * @param maxCarryWeight + * the maximum total weight of the items that the player can + * carry + */ public Player(final int maxCarryWeight) { this.currentRoom = null; this.previousRooms = new Stack(); -- cgit v1.2.3