Ejemplo n.º 1
0
 //moves the Player to an adjacent room
 public InGameRenderInfo movePlayer(int room)
 {
     //resets the messages
     resetPop();
     //player gets gold, updates render for UI
     player.incGold();
     //updates location of player, actually moves player
     map.updatePlayerLocation(room);
     //updates and returns render to UI
     updateRender();
     return(render);
 }