posted 18 years ago
Write a method in the Game class called getCurrentRoom() that returns a Room. If you are in Player, then you need a reference to the Game class. if you are in some other code, you could write a putCurrentRoom() in the Player class, then do
Room tempRoom = myGame.GetCurrentRoom();
currentPlayer.putCurrentRoom(tempRoom);
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors